Don't require probes to pass in router worker sync - #4313
Merged
Merged
Conversation
The sync only picked up router and worker jobs with `JobModel.ready`, i.e. with all probes passed. A router probe that depends on registered workers, such as `/health_generate`, never passed, since workers are only registered once the router is picked up, so the service deadlocked. The sync now takes all running jobs, filtered by `job_num == 0` instead. Workers are registered once the sync's own check (`/server_info` or `GetServerInfo`) reports them ready, so `probes` can no longer delay worker registration. As probes are configured per service, not per replica group, such gating only worked when the router and workers share the transport and API. The `job_num == 0` condition is a no-op for now, as services don't support multi-node replicas. Previously, it was implied by `ready`, which is only set for the first node. Fixes: #4310 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…orker_sync_ignore_probes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The sync only picked up router and worker jobs with
JobModel.ready, i.e. with all probes passed. A router probe that depends on registered workers, such as/health_generate, never passed, since workers are only registered once the router is picked up, so the service deadlocked.The sync now takes all running jobs, filtered by
job_num == 0instead. Workers are registered once the sync's own check (/server_infoorGetServerInfo) reports them ready, soprobescan no longer delay worker registration. As probes are configured per service, not per replica group, such gating only worked when the router and workers share the transport and API.The
job_num == 0condition is a no-op for now, as services don't support multi-node replicas. Previously, it was implied byready, which is only set for the first node.Fixes: #4310