Skip to content

Commit

Permalink
Merge pull request #50896 from nextcloud/bugfix/noid/keep-job-class-l…
Browse files Browse the repository at this point in the history
…imitation

fix(cron): Keep job class limitation when searching for the next job
  • Loading branch information
ChristophWurst authored Feb 19, 2025
2 parents 0d49af4 + 73d9435 commit ff86bac
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 ff86bac

Please sign in to comment.