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 repository's AGENTS.md is experimental with no guarantees of backwards/future compatibility — per the task instructions I'm treating that disclaimer as acknowledged and proceeding.
Let me investigate the MultiKueue worker-disconnect handling.
- Assistant
Now let me look at the cluster reconciler and remote client to understand disconnect handling.
- Assistant
Let me check how the admission check controller reacts to cluster inactivity, and the integration tests for worker loss.
- Assistant
Let me see how the unit tests set up the clusters reconciler and remote clients.
- Assistant
Let me check how
ErrNoActiveClustersis handled and look at theremoteClientsForACcallers. - Assistant
Let me check the test's clock setup and the top of workload_test.go.
- Assistant
All constructions go through
newClustersReconciler. Now implementing the fix.1. Track connection-loss times in
clustersReconciler: - Assistant
Now add the two methods next to
controllerFor: - Assistant
Now clear the record when a connection is successfully (re)established, and initialize the map in the constructor:
- Assistant
2. Base the worker-lost countdown on the connection-loss time in the workload reconciler:
- Assistant
Now let me verify it builds and run the existing unit tests:
- Assistant
Builds cleanly. Now run the package's unit tests:
- Assistant
All pass. Now add focused unit tests for the new behavior:
- Assistant
Now I'll add the new test after
TestWlReconcile: - Assistant
Both new cases pass. Run the full package suite plus vet:
- Assistant
Vet is clean and all tests pass. Let me also compile the integration test package to make sure nothing is broken there:
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.