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 requeue behavior are implemented so we can fix premature requeueing.
- Assistant
Implementing the fix:
LastTransitionTimeis set only when the workload first becomes Ready, so a disconnect after a long run can expire the timeout immediately. Starting the worker-loss timer on first disconnect detection. - Assistant
Adding a unit test for the disconnect-after-long-admission scenario:
- Assistant
Note: Usage of
AGENTS.mdis experimental with no guarantees of backwards or future compatibility. Please acknowledge if you’d like that tracked going forward.Root cause
When a worker disconnected, the MultiKueue workload controller measured the worker-loss timeout from
AdmissionCheckState.LastTransitionTime, which is set when the workload first becomes Ready — not when the connection is lost.For workloads admitted longer than
workerLostTimeout(default 15 minutes), a disconnect caused an immediate requeue instead of waiting the full grace period.A second issue:
SetAdmissionCheckStatedid not updateLastTransitionTimewhen the state stayedReady, so periodic syncs could not refresh the timestamp either.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.