Skip to content

Commit

Permalink
Merge pull request #50900 from nextcloud/backport/50896/stable30
Browse files Browse the repository at this point in the history
[stable30] fix(cron): Keep job class limitation when searching for the next job
  • Loading branch information
nickvergessen authored Feb 19, 2025
2 parents f448d24 + 2d1bfad commit 0598fd7
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 0598fd7

Please sign in to comment.