diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-07-21 12:06:48 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-07-28 11:44:39 +0000 |
commit | c92baafc0f7da1a6f10a5e1f2a08b779ad1a0dbc (patch) | |
tree | 075ed1b6af11b8c70357cd8694b3bf6ab63c16a3 /lib | |
parent | 2b23be897b589780a6352a91e052b5f35ebcc50f (diff) | |
download | nextcloud-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.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']); |