From 565d4af4fd171c8c1d62c9302f03592df12ff573 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Fri, 5 Jun 2026 14:31:00 -0400 Subject: [PATCH] fix: raise unlock Lambda timeout to 20s (#29) The door-unlock-api-unlock function hit its 10,000ms timeout on 2026-06-05 at 18:00 UTC during a cold start combined with a slow LenelS2 Elements API call (REPORT: Duration 10000.00 ms, Status: timeout). A concurrent attempt succeeded in 3639ms, confirming the call path is healthy but lacks margin under cold-start + slow-API conditions. Raise the UnlockHandler timeout from 10s to 20s for additional headroom. LockdownHandler (15s) and the poller (75s) are unchanged. --- lib/door-unlock-stack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/door-unlock-stack.ts b/lib/door-unlock-stack.ts index 599c656..6d20d1b 100644 --- a/lib/door-unlock-stack.ts +++ b/lib/door-unlock-stack.ts @@ -60,7 +60,7 @@ export class DoorUnlockStack extends cdk.Stack { AUTH_TOKEN_PARAM: "/seahaven/door-unlock/auth-token", DOOR_ID_PARAM: "/seahaven/door-unlock/door-id", }, - timeout: cdk.Duration.seconds(10), + timeout: cdk.Duration.seconds(20), memorySize: 128, logRetention: logs.RetentionDays.TWO_MONTHS, });