From c1194236c984e8ac07735480586dd269a63b2772 Mon Sep 17 00:00:00 2001 From: Amp Date: Mon, 17 Aug 2026 09:48:53 +0000 Subject: [PATCH] Increase server stale threshold to three minutes Amp-Thread-ID: https://ampcode.com/threads/T-01a00e5c-7840-75f1-926d-098b5bc1308a Co-authored-by: Arjun Komath --- web/lib/scheduler.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/lib/scheduler.ts b/web/lib/scheduler.ts index ab478e25..b74c627b 100644 --- a/web/lib/scheduler.ts +++ b/web/lib/scheduler.ts @@ -28,7 +28,6 @@ import { DAY_IN_MILLISECONDS, isDateAfter, MINUTE_IN_MILLISECONDS, - SECOND_IN_MILLISECONDS, subtractMilliseconds, } from "@/lib/date"; import { deployServiceInternal } from "@/lib/deploy-service"; @@ -49,7 +48,7 @@ import { WORK_QUEUE_MAX_ATTEMPTS, } from "@/lib/work-queue"; -const STALE_THRESHOLD_MS = 75 * SECOND_IN_MILLISECONDS; +const STALE_THRESHOLD_MS = 3 * MINUTE_IN_MILLISECONDS; export const AUTOMATIC_PLACEMENT_COOLDOWN_MS = 30 * MINUTE_IN_MILLISECONDS; export const MAX_REBALANCES_PER_RUN = 5; export const MAX_AUTOMATIC_RECOVERIES_PER_RUN = 5;