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
Investigating how worker disconnects and worker-loss timeouts affect admitted workload requeuing.
- Assistant
Implementing the fix:
LastTransitionTimeis set when the workload becomes Ready, so disconnects after a long run skip the wait. We'll start the timeout only when a disconnect is detected. - Assistant
Updating tests to match the new disconnect-detection behavior:
- Assistant
Handling
ErrNoActiveClusterswhen the reserving worker is disconnected but the workload remains admitted: - Assistant
Note: Usage of
AGENTS.mdis experimental without any guarantees of backwards or future compatibility. Please acknowledge if you want to proceed with that guidance in future sessions.
Problem
When a MultiKueue worker disconnected, admitted workloads could be requeued immediately instead of waiting for
workerLostTimeout.The worker-loss wait used
AdmissionCheckState.LastTransitionTime, which is set when the workload first becomes Ready — not when the worker disconnects. A workload that had been running for longer thanworkerLostTimeoutwould hit the retry path right away on disconnect.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.