Skip to content

Commit f4735c9

Browse files
committed
fixup! fixup! Allow calling cron.php with a background job class
1 parent 9134983 commit f4735c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/BackgroundJob/JobList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function getNext(string $jobClass = null) {
212212

213213
if ($count === 0) {
214214
// Background job already executed elsewhere, try again.
215-
return $this->getNext();
215+
return $this->getNext($jobClass);
216216
}
217217
$job = $this->buildJob($row);
218218

@@ -226,7 +226,7 @@ public function getNext(string $jobClass = null) {
226226
$reset->execute();
227227

228228
// Background job from disabled app, try again.
229-
return $this->getNext();
229+
return $this->getNext($jobClass);
230230
}
231231

232232
return $job;

0 commit comments

Comments
 (0)