fix(cron): Keep job class limitation when searching for the next job

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-02-19 08:44:33 +01:00 committed by backportbot[bot]
parent 78f532dd31
commit 2d1bfad11e

View file

@ -206,7 +206,7 @@ class JobList implements IJobList {
$update->setParameter('jobid', $row['id']);
$update->executeStatement();
return $this->getNext($onlyTimeSensitive);
return $this->getNext($onlyTimeSensitive, $jobClasses);
}
$update = $this->connection->getQueryBuilder();