diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-13 03:15:02 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-13 03:15:02 +0000 |
| commit | d5f83f8662c9f9c0fb52b206b06d4dd54a7788b4 (patch) | |
| tree | 780da46be8f8f80cc7697546e8361cd405d6f3fa /internal/api/validate_test.go | |
| parent | b9aba3d242482fa9cd42f2a49b2767a73d4d2213 (diff) | |
fix: resubmit QUEUED tasks on server startup to prevent them getting stuck
Add Pool.RecoverStaleQueued() that lists all QUEUED tasks from the DB on
startup and re-submits them to the in-memory pool. Previously, tasks that
were QUEUED when the server restarted would remain stuck indefinitely since
only RUNNING tasks were recovered (and marked FAILED).
Called in serve.go immediately after RecoverStaleRunning().
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/api/validate_test.go')
0 files changed, 0 insertions, 0 deletions
