summaryrefslogtreecommitdiff
path: root/scripts/reset-failed-tasks
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-13 03:15:02 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-13 03:15:02 +0000
commitd5f83f8662c9f9c0fb52b206b06d4dd54a7788b4 (patch)
tree780da46be8f8f80cc7697546e8361cd405d6f3fa /scripts/reset-failed-tasks
parentb9aba3d242482fa9cd42f2a49b2767a73d4d2213 (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 'scripts/reset-failed-tasks')
0 files changed, 0 insertions, 0 deletions