API-server worker shutdown and state.db lifecycle fixes
Cluster 116535. Data as of
Nothing open on GitHub. Fix merged in #116962 on 20 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #116962. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #116962. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and pull requests address a shutdown bug where the API-server worker's lifetime is not properly tracked when its handler is cancelled, leaving state.db open. The changes transfer turn ownership and track worker lifetime to ensure clean shutdown.
Open issues0
Open PRs0
Fixes on record
-
#116962 fix(gateway): shutdown keeps state.db open under an API-server worker whose handler was cancelled (#116535, salvage #116540)
files:
gateway/platforms/api_server.py,gateway/platforms/api_server_runs.py,gateway/run_shutdown.py,tests/gateway/test_api_server_active_work_drain.py,tests/gateway/test_shutdown_cache_cleanup.py,tests/gateway/test_shutdown_executor_quiesce.py
2 PRs closed without merging
From the close comments: done elsewhere 1 · merged via another change 1
Closed issues · 1
- Closed#116535fix(shutdown): track API-server worker lifetime past handler cancellation
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.50: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Merged PRs
- #116962
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 20 Sep 2026