Skip to content

Commit

Permalink
fixup! fixup! Allow calling cron.php with a background job class
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Jan 14, 2022
1 parent 9134983 commit f4735c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/BackgroundJob/JobList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
Expand Down

0 comments on commit f4735c9

Please sign in to comment.