Files
openclaw/gateway-shutdown-budget.d.mts
T
10c229159c fix: forced Gateway restarts cancel healthy subagent work (#154300)
* fix: let forced Gateway restarts drain admitted work

Keep force separate from exhausted drain budgets and settle startup orphan rows with their failure receipts in one transaction. Reuse prepared process fixtures for restart coverage.

* test: include drain budget in external restart health check

Preserve the exact running-Gateway and no-candidate-state assertions while allowing the existing five-minute drain budget before the one-minute readiness window.

* test(gateway): control elapsed drain clocks

* refactor(gateway): separate restart budget and warning formatting

* fix(gateway): retain shutdown deadlines through completion

Integrate the landed shutdown-completion owner fix from #145241 so its
extracted regression suite composes with the forced-restart drain policy.
Keep the cleanup-only fixtures explicitly exhausted and preserve their
original timeout assertions.

Co-authored-by: Alex Markson <alex@metahack.io>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>

* test(gateway): clean up forced restart fixtures

---------

Co-authored-by: Alex Markson <alex@metahack.io>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-09-21 04:28:38 -07:00

7 lines
323 B
TypeScript

export const GATEWAY_SHUTDOWN_RESERVE_MS: number;
export const GATEWAY_SUPERVISOR_EXIT_MARGIN_MS: number;
export const GATEWAY_SHUTDOWN_TIMEOUT_MS: number;
export const GATEWAY_SERVICE_STOP_TIMEOUT_MS: number;
export const LAUNCH_AGENT_EXIT_TIMEOUT_SECONDS: 20;
export const GATEWAY_RESTART_REPLACEMENT_TIMEOUT_MS: number;