Files
e82ea4dc35 [AI] Fix schedule service shutdown race (#8791)
* [AI] fix: prevent duplicate schedule runs during shutdown

* docs: add schedule shutdown release note

* Restore current master changes

* Handle schedule mutator failures

* fix: drain background syncs and retry failed schedule metadata writes

* fix: drain background work for every budget close entrypoint

* fix: stop sync timers and drain late work before budget close

* [AI] Minimize schedule shutdown regression coverage

* [AI] Drain sync work in closeBudget instead of tracking background handlers

* [AI] Stop new syncs while closing the budget

* [AI] Flush mutators with a queued no-op instead of tracking them

* [AI] Track running mutators again so sync-error schedule work is drained

* [AI] Tighten shutdown comments and release note

* [AI] Keep only essential schedule shutdown regressions

* [AI] Drop rollback after completed schedule runs

---------

Co-authored-by: cakeni <211545599+cakeni@users.noreply.github.com>
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-10-30 08:59:36 +00:00

120 B

category, authors
category authors
Bugfix
cakeni

Fix an occasional API crash on shutdown while schedules are being processed