fix(IParallelAwareJob): Check for other reserved jobs before setting new ones as reserved#39473
Merged
nickvergessen merged 5 commits intomasterfrom Jul 28, 2023
Merged
fix(IParallelAwareJob): Check for other reserved jobs before setting new ones as reserved#39473nickvergessen merged 5 commits intomasterfrom
nickvergessen merged 5 commits intomasterfrom
Conversation
Member
Author
|
/backport to stable27 |
come-nc
reviewed
Jul 20, 2023
be77eca to
3c3241a
Compare
Member
Author
|
Added tests. |
come-nc
reviewed
Jul 20, 2023
marcelklehr
commented
Jul 21, 2023
|
|
||
| $update = $this->connection->getQueryBuilder(); | ||
| $update->update('jobs') | ||
| ->set('last_checked', $update->createNamedParameter($this->timeFactory->getTime() + 1)) |
Member
Author
There was a problem hiding this comment.
+1 to avoid infinite loop
Member
Author
|
CI failure seems unrelated. |
miaulalala
approved these changes
Jul 27, 2023
bigcat88
approved these changes
Jul 27, 2023
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
d734da6 to
7e790a3
Compare
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.
Summary
When setting
allowParallelJobstofalse, it checks whether other jobs with the same class are already reserved. This is always the case though, because we wait with this check until after setting the current job to reserved. This PR changes this order.Checklist