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 trigger workload requeuing and where the worker-loss timeout is applied.
- Assistant
Identifying the bug:
LastTransitionTimeis only updated when the admission check state changes, so on disconnect it still reflects when the workload first became Ready and the grace period can expire immediately. Implementing a fix to start the timer when disconnect is first detected. - Assistant
Updating unit tests and adding coverage for the disconnect scenario:
- Assistant
Distinguishing worker disconnect from intentional remote deletion (e.g., out-of-sync spec) so we don't start a grace period in the latter case.
- Assistant
Note: Usage of
AGENTS.mdis experimental, with no guarantees of backwards or future compatibility. Please acknowledge if you want to keep using it for follow-up work.Problem
When a MultiKueue admitting worker disconnected, admitted workloads could be retried immediately instead of waiting for
workerLostTimeout.The grace-period logic used
AdmissionCheckState.LastTransitionTime, butSetAdmissionCheckStateonly updates that timestamp when the state changes. For workloads that had beenReadyfor a long time, the timer was already expired at disconnect, so they were requeued right away.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.