fix(gateway): drain in-flight work before restart

This commit is contained in:
Kenny Xie 2026-04-10 10:19:17 -07:00 committed by Teknium
parent 241032455c
commit 3163731289
12 changed files with 707 additions and 98 deletions

View file

@ -480,6 +480,12 @@ agent:
# Fires once per run when inactivity reaches this threshold (seconds).
# Set to 0 to disable the warning.
# gateway_timeout_warning: 900
# Graceful drain timeout for gateway stop/restart (seconds).
# The gateway stops accepting new work, waits for in-flight agents to
# finish, then interrupts anything still running after this timeout.
# 0 = no drain, interrupt immediately.
# restart_drain_timeout: 60
# Enable verbose logging
verbose: false