diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 400e1a43eedc0..7258872db06df 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -212,7 +212,7 @@ public function getNext(string $jobClass = null) { if ($count === 0) { // Background job already executed elsewhere, try again. - return $this->getNext(); + return $this->getNext($jobClass); } $job = $this->buildJob($row); @@ -226,7 +226,7 @@ public function getNext(string $jobClass = null) { $reset->execute(); // Background job from disabled app, try again. - return $this->getNext(); + return $this->getNext($jobClass); } return $job;