Skip to content

scheduler: fix scheduling for jobs with serial: true and check_every: never resource(s) - #9670

Merged
taylorsilva merged 3 commits into
masterfrom
9665-serial-true
Jul 31, 2026
Merged

taylorsilva merged 3 commits into
masterfrom
9665-serial-true

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

closes #9665

Changed when we check if the builds max_in_flight has been reached to
after checking if inputs need to be determined. This unblocks jobs with
serial: true because they would be blocked forever because their
inputs never get determined.

I've added a testflight case that covers this specific scenraio, which
involves an input resource having check_every: never configured.

I updated the log line in buildstarter as well to be more useful since
the raw IDs are hard to translate to pipeline/job names without having
access to the database.

Signed-off-by: Taylor Silva <[email protected]>
changed when we check if the builds max_in_flight has been reached to
after checking if inputs need to be determined. This unblocks jobs with
`serial: true` because they would be blocked forever because their
inputs never get determined.

I've added a testflight case that covers this specific scenraio, which
involves an input resource having `check_every: never` configured.

I updated the log line in buildstarter as well to be more useful since
the raw IDs are hard to translate to pipeline/job names without having
access to the database.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva taylorsilva changed the title scheduler: fix scheduling for jobs with serial: true and check_every: never resource scheduler: fix scheduling for jobs with serial: true and check_every: never resource(s) Jul 31, 2026
@taylorsilva
taylorsilva merged commit 439d59e into master Jul 31, 2026
11 checks passed
@taylorsilva
taylorsilva deleted the 9665-serial-true branch July 31, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource with check_every: never deadlocks the job(serial: true + a trigger: true) , stuck at pending

1 participant