summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-21 12:06:48 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-07-28 11:44:39 +0000
commitc92baafc0f7da1a6f10a5e1f2a08b779ad1a0dbc (patch)
tree075ed1b6af11b8c70357cd8694b3bf6ab63c16a3 /lib
parent2b23be897b589780a6352a91e052b5f35ebcc50f (diff)
downloadnextcloud-server-c92baafc0f7da1a6f10a5e1f2a08b779ad1a0dbc.tar.gz
nextcloud-server-c92baafc0f7da1a6f10a5e1f2a08b779ad1a0dbc.zip
Remove allowParallelRuns check in OCP\BackgroundJob\Job
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/public/BackgroundJob/Job.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/public/BackgroundJob/Job.php b/lib/public/BackgroundJob/Job.php
index 455fb3d42e7..a574e90e1a0 100644
--- a/lib/public/BackgroundJob/Job.php
+++ b/lib/public/BackgroundJob/Job.php
@@ -75,11 +75,6 @@ abstract class Job implements IJob, IParallelAwareJob {
$jobList->setLastRun($this);
$logger = $this->logger ?? \OCP\Server::get(LoggerInterface::class);
- if (!$this->getAllowParallelRuns() && $jobList->hasReservedJob(get_class($this))) {
- $logger->debug('Skipping ' . get_class($this) . ' job with ID ' . $this->getId() . ' because another job with the same class is already running', ['app' => 'cron']);
- return;
- }
-
try {
$jobStartTime = $this->time->getTime();
$logger->debug('Run ' . get_class($this) . ' job with ID ' . $this->getId(), ['app' => 'cron']);