Skip to content

Commit

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

Please sign in to comment.