Repository navigation
Built-in watchdog for stuck runs, so one hung run can't block a thread's queue #32505
IchoTolotos
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We run a long-lived "orchestrator" thread that is driven by scheduled tasks and signed webhooks (alerts, worker reports, release requests) so messages queue up on it all day.
The problem: when one run hangs, every queued message behind it waits. Nothing in the UI or API says the thread is stuck. We lost 8 hours once with 29 events queued behind one wait. One cause is #26537 (a run for an already-consumed background-command notice never ends) but any silent hang has the same effect: a blocking tool wait, or a provider stream that dies without an error.
What we built ourselves: an external watchdog that reads T3's state read-only every 60 s, spots a run with no provider activity while others are queued, interrupts exactly that run, and moves a short recovery note to the front of the queue. It works, but it depends on internal tables and has to be re-checked after every T3 update.
Could you make something to address this part of T3?
For example:
Happy to share more info if that helps.
All reactions