Skip to content

Avoid postponing job processing when unlocking jobs - #4550

Closed
peterschmidt85 wants to merge 2 commits into
masterfrom
pr_preserve_job_processing_timestamp
Closed

peterschmidt85 wants to merge 2 commits into
masterfrom
pr_preserve_job_processing_timestamp

Conversation

@peterschmidt85

@peterschmidt85 peterschmidt85 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Run processing can postpone service readiness and replica registration by resetting JobModel.last_processed_at when it only unlocks a job. This affects the shared job scheduling path, including services with multiple replicas, replica groups, and routers. If no replica is registered with the gateway, requests return 503; otherwise added capacity or rolling deployment can be delayed.

Preserve the timestamp when active-run processing only releases the job lock. Continue updating it when run processing changes the job's state or deployment. Probe evaluation, router worker discovery, and gateway registration retain their existing rules. The same scheduling correction applies to task and dev-environment jobs.

Fixes #4551.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Run processing can postpone service readiness and registration after probes pass

1 participant