Admitted workloads are requeued too early when a worker disconnects An admitted workload…
- User
Admitted workloads are requeued too early when a worker disconnects
An admitted workload must remain ready during a temporary worker disconnect and be retried only after the configured worker-loss timeout. Reconnection with the same configuration must restore processing without affecting other connected workers.
Interface
No new interfaces are introduced.
- Assistant
I’ll implement this directly. Note: the repository’s AGENTS.md support is experimental and carries no backward/forward compatibility guarantees; per the task instructions, I’m treating that disclaimer as acknowledged and proceeding. I’ll first trace worker disconnect and workload requeue behavior, then patch and run focused tests.
- Assistant
rgisn’t installed in this checkout, so I’m using scopedfind/grepsearches instead. I’m narrowing this to the worker lifecycle code and checking the current worktree before editing so unrelated user changes remain untouched. - Assistant
The fault is in the timeout’s reference point: the controller currently measures worker loss from the admission check’s
Readytransition, so a workload that has run longer than the timeout can be retried immediately after a brief disconnect. I’m adjusting the lifecycle state so the deadline begins when that specific worker’s connection is actually lost and is cleared only when that worker reconnects. - Assistant
The production change now records loss time per remote worker, preserving the original timestamp across reconnect backoff attempts and clearing it on successful reconnection. The first test attempt hit the container’s process limit during Go compilation (not a code failure), so I’m rerunning with constrained parallelism.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.