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

feat(BackgroundJobs): Allow preventing parallel runs for a job class #37835

Merged
merged 15 commits into from
Apr 25, 2023

Conversation

marcelklehr
Copy link
Member

Summary

This PR adds a setAllowParallelRuns() method to the BackgroundJob\Job abstract class in order to allow jobs to disallow parallel runs.

Checklist

lib/private/BackgroundJob/JobList.php Outdated Show resolved Hide resolved
lib/public/BackgroundJob/Job.php Outdated Show resolved Hide resolved
@nickvergessen
Copy link
Member

you need to rebase on master to fix the red ci

@marcelklehr marcelklehr force-pushed the feat/background-allow-parallel-runs branch from 4eb91d0 to 75a13f2 Compare April 21, 2023 08:52
@marcelklehr
Copy link
Member Author

Didn't help.

@skjnldsv
Copy link
Member

Didn't help.

#37858

@nickvergessen
Copy link
Member

So time to rebase again

marcelklehr and others added 11 commits April 23, 2023 12:36
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
…Jobs

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
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>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
so Joas doesn't die

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr marcelklehr force-pushed the feat/background-allow-parallel-runs branch from 75a13f2 to 5a7f023 Compare April 23, 2023 10:36
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr marcelklehr requested a review from come-nc April 24, 2023 09:17
lib/private/BackgroundJob/JobList.php Outdated Show resolved Hide resolved
tests/lib/BackgroundJob/DummyJobList.php Outdated Show resolved Hide resolved
tests/lib/BackgroundJob/JobListTest.php Show resolved Hide resolved
marcelklehr and others added 2 commits April 24, 2023 12:35
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Copy link
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

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

We have both TestJob.php and JobTest.php files in the same folder xD

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr
Copy link
Member Author

Can we merge this? CI failure seems unlreated.

@come-nc come-nc merged commit 7250f54 into master Apr 25, 2023
@come-nc come-nc deleted the feat/background-allow-parallel-runs branch April 25, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants