From c92baafc0f7da1a6f10a5e1f2a08b779ad1a0dbc Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 21 Jul 2023 12:06:48 +0200 Subject: Remove allowParallelRuns check in OCP\BackgroundJob\Job Signed-off-by: Marcel Klehr --- lib/public/BackgroundJob/Job.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib') 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']); -- cgit v1.2.3