Skip to content

Commit

Permalink
fix(cron): Keep job class limitation when searching for the next job
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Feb 19, 2025
1 parent 0d49af4 commit 73d9435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/BackgroundJob/JobList.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function getNext(bool $onlyTimeSensitive = false, ?array $jobClasses = nu
$update->setParameter('jobid', $row['id']);
$update->executeStatement();

return $this->getNext($onlyTimeSensitive);
return $this->getNext($onlyTimeSensitive, $jobClasses);
}

$update = $this->connection->getQueryBuilder();
Expand Down

0 comments on commit 73d9435

Please sign in to comment.