Skip to content

landing_job: do not pickup handover jobs in all workers (bug 2019420)#949

Open
zzzeid wants to merge 1 commit intomainfrom
zeid/bug-2019420-handover-job-fix
Open

landing_job: do not pickup handover jobs in all workers (bug 2019420)#949
zzzeid wants to merge 1 commit intomainfrom
zeid/bug-2019420-handover-job-fix

Conversation

@zzzeid
Copy link
Contributor

@zzzeid zzzeid commented Feb 25, 2026

  • add get_next_job method to jobs
  • include all repositories associated with workers in landing job query
  • throttle worker when next job is DEFERRED

@github-actions
Copy link

View this pull request in Lando to land it once approved.

@zzzeid zzzeid force-pushed the zeid/bug-2019420-handover-job-fix branch 2 times, most recently from 5adb76f to 1bed162 Compare February 26, 2026 19:24
@zzzeid zzzeid marked this pull request as ready for review February 26, 2026 19:24
@zzzeid zzzeid requested a review from a team as a code owner February 26, 2026 19:24
Copy link
Member

@shtrom shtrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, w/ potential nit

Comment on lines +1459 to +1461
if "git" not in closed_repos:
assert next_git_job is None

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should this one be

Suggested change
if "git" not in closed_repos:
assert next_git_job is None
if "git" in closed_repos:
assert next_git_job is None

?

That said, we'd get None nonetheless because there aren't any other queued jobs, so I suspect this assertion is not needed, or should at least be unconditional.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. This actually points to a slightly larger issue. Will push a fix.

@zzzeid zzzeid force-pushed the zeid/bug-2019420-handover-job-fix branch 3 times, most recently from 894f7b6 to 722e616 Compare March 4, 2026 19:56
@zzzeid zzzeid force-pushed the zeid/bug-2019420-handover-job-fix branch from 722e616 to 4528dd3 Compare March 4, 2026 20:03
many seconds ago.
"""
q = super().job_queue_query()
q = super().job_queue_query(repositories)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is basically reverted back to the state before #748.

@zzzeid zzzeid requested a review from shtrom March 4, 2026 21:09
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.

2 participants