Commit Graph
1 Commits
Author SHA1 Message Date
6e91dc97b8 worker: reject a task at capacity without blocking the manager loop (#13453)
* worker: reject a task at capacity without blocking the manager loop

* worker: gofmt the capacity test and trim its comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* worker: report a task rejected at capacity back to the admin

The admin marks a task assigned before sending it, has no assignment
timeout, and only reclaims tasks from workers whose heartbeats stop.
A worker that rejects a task at capacity keeps heartbeating, so the
task stayed assigned to it and blocked further work on its volume.
Report the rejection as a failure so the admin reschedules it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 11:15:01 -08:00