fix(monitoring): drain terminal lifecycle events

This commit is contained in:
Victor Kyriazakos 2026-07-22 22:08:51 +00:00
parent 4dc4f4302a
commit 18b4664543
7 changed files with 139 additions and 33 deletions

View file

@ -72,6 +72,7 @@ def main() -> None:
logging.getLogger("gateway.platforms.slack").warning("Slack token *** rejected for smoke@example.com")
emitter.get_emitter().flush(timeout=2.0)
time.sleep(args.wait)
write_runtime_status(gateway_state="stopped", active_agents=0)
runtime.shutdown()
emitter.get_emitter().flush(timeout=2.0)