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
Note: this repo's AGENTS.md instructs me to flag that its usage is experimental with no guarantees of backwards/future compatibility — per task instructions I'll treat that disclaimer as acknowledged and proceed.
Let me explore the MultiKueue worker-loss handling code.
- Assistant
Now implement the changes in
multikueuecluster.go: - Assistant
Now update
workload.go: - Assistant
Now add the helper function after
isRemoteSpecOutOfSync: - Assistant
Build passes. Now run the multikueue unit tests:
- Assistant
All production mutation sites of
connectingnow go through the paired helpers. To verify the fix end-to-end at the reconciler level, let me write a temporary test (which I'll delete afterward, keeping test files untouched): - Assistant
Both scenarios verified — with the old code the first case would have retried immediately. Now remove the temporary test and run the full package suite:
- Assistant
Run a broader build and vet to make sure nothing else references the changed internals, and compile the integration test packages:
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.