diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-07-21 12:06:48 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-07-28 11:12:32 +0200 |
commit | 2b96760dc66a473f5f5d76edac55126064ea3b2f (patch) | |
tree | c69d14b3e162fecc1908c11ad247f5d0baaeed3c /lib/public | |
parent | 3d8fd2d99e6529eecf76c9ac236c8fac3e75675d (diff) | |
download | nextcloud-server-2b96760dc66a473f5f5d76edac55126064ea3b2f.tar.gz nextcloud-server-2b96760dc66a473f5f5d76edac55126064ea3b2f.zip |
Remove allowParallelRuns check in OCP\BackgroundJob\Job
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/BackgroundJob/Job.php | 5 |
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']); |