relax task timeouts: stale timeout 3min→20min, session wait 30s→1min

This commit is contained in:
YeonGyu-Kim
2026-03-17 16:27:00 +09:00
parent 90351e442e
commit b788586caf
5 changed files with 36 additions and 6 deletions
+14 -1
View File
@@ -1,6 +1,6 @@
declare const require: (name: string) => any
const { describe, expect, test } = require("bun:test")
import { __resetTimingConfig, __setTimingConfig, getDefaultSyncPollTimeoutMs } from "./timing"
import { __resetTimingConfig, __setTimingConfig, getDefaultSyncPollTimeoutMs, getTimingConfig } from "./timing"
describe("timing sync poll timeout defaults", () => {
test("default sync timeout is 30 minutes", () => {
@@ -27,3 +27,16 @@ describe("timing sync poll timeout defaults", () => {
__resetTimingConfig()
})
})
describe("WAIT_FOR_SESSION_TIMEOUT_MS default", () => {
test("default wait for session timeout is 1 minute", () => {
// #given
__resetTimingConfig()
// #when
const config = getTimingConfig()
// #then
expect(config.WAIT_FOR_SESSION_TIMEOUT_MS).toBe(60_000)
})
})
+2 -2
View File
@@ -2,7 +2,7 @@ let POLL_INTERVAL_MS = 1000
let MIN_STABILITY_TIME_MS = 10000
let STABILITY_POLLS_REQUIRED = 3
let WAIT_FOR_SESSION_INTERVAL_MS = 100
let WAIT_FOR_SESSION_TIMEOUT_MS = 30000
let WAIT_FOR_SESSION_TIMEOUT_MS = 60000
const DEFAULT_POLL_TIMEOUT_MS = 30 * 60 * 1000
let MAX_POLL_TIME_MS = DEFAULT_POLL_TIMEOUT_MS
let SESSION_CONTINUATION_STABILITY_MS = 5000
@@ -30,7 +30,7 @@ export function __resetTimingConfig(): void {
MIN_STABILITY_TIME_MS = 10000
STABILITY_POLLS_REQUIRED = 3
WAIT_FOR_SESSION_INTERVAL_MS = 100
WAIT_FOR_SESSION_TIMEOUT_MS = 30000
WAIT_FOR_SESSION_TIMEOUT_MS = 60000
MAX_POLL_TIME_MS = DEFAULT_POLL_TIMEOUT_MS
SESSION_CONTINUATION_STABILITY_MS = 5000
}