perf: reduce dispatch gap timeout from 30s to 5s
The dispatch gap watchdog is a safety net for when the dispatch chain silently breaks. 30s is unnecessarily long and makes failures feel sluggish. 5s is plenty of time to detect a stall without the wait. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
07609d50b7
commit
7e9b792dc4
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ let idleWatchdogHandle: ReturnType<typeof setInterval> | null = null;
|
|||
* re-evaluation. Covers the case where dispatchNextUnit silently fails or
|
||||
* an unhandled error kills the dispatch chain. */
|
||||
let dispatchGapHandle: ReturnType<typeof setTimeout> | null = null;
|
||||
const DISPATCH_GAP_TIMEOUT_MS = 30_000; // 30 seconds
|
||||
const DISPATCH_GAP_TIMEOUT_MS = 5_000; // 5 seconds
|
||||
|
||||
/** SIGTERM handler registered while auto-mode is active — cleared on stop/pause. */
|
||||
let _sigtermHandler: (() => void) | null = null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue