mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Remove allowParallelRuns check in OCP\BackgroundJob\Job
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
3d8fd2d99e
commit
2b96760dc6
1 changed files with 0 additions and 5 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue