Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(JobList#hasReservedJob): Break tie when multiple jobs are reserved #41295

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Nov 6, 2023

Summary

Currently, when multiple jobs of the same class are reserved that have all set allowParallelRuns to false, none of them will run. This changes the check to only consider the jobs reserved in the past 6h as currently running.

Checklist

@marcelklehr
Copy link
Member Author

/backport to stable27

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Worth to put into the comment of the method/interface (public api)

@marcelklehr
Copy link
Member Author

Done. CI failures seem unrelated. Please merge.

@nickvergessen nickvergessen merged commit dbe9214 into master Nov 9, 2023
46 of 49 checks passed
@nickvergessen nickvergessen deleted the fix/has-reserved-job branch November 9, 2023 12:26
@blizzz blizzz mentioned this pull request Nov 9, 2023
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.

3 participants