Skip to content

Commit fa0d196

Browse files
authored
Merge pull request #296 from techulus/change/server-stale-threshold-3m
Increase server stale threshold to three minutes
2 parents cab4652 + c119423 commit fa0d196

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎web/lib/scheduler.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import {
2828
DAY_IN_MILLISECONDS,
2929
isDateAfter,
3030
MINUTE_IN_MILLISECONDS,
31-
SECOND_IN_MILLISECONDS,
3231
subtractMilliseconds,
3332
} from "@/lib/date";
3433
import { deployServiceInternal } from "@/lib/deploy-service";
@@ -49,7 +48,7 @@ import {
4948
WORK_QUEUE_MAX_ATTEMPTS,
5049
} from "@/lib/work-queue";
5150

52-
const STALE_THRESHOLD_MS = 75 * SECOND_IN_MILLISECONDS;
51+
const STALE_THRESHOLD_MS = 3 * MINUTE_IN_MILLISECONDS;
5352
export const AUTOMATIC_PLACEMENT_COOLDOWN_MS = 30 * MINUTE_IN_MILLISECONDS;
5453
export const MAX_REBALANCES_PER_RUN = 5;
5554
export const MAX_AUTOMATIC_RECOVERIES_PER_RUN = 5;

0 commit comments

Comments
 (0)