Skip to content

Commit

Permalink
fix: log a warning when we can't build a background job
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and backportbot[bot] committed Nov 11, 2024
1 parent 90e7667 commit b15ceb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/BackgroundJob/JobList.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ private function buildJob(array $row): ?IJob {
$class = $row['class'];
$job = new $class();
} else {
$this->logger->warning('failed to create instance of background job: ' . $row['class'], ['app' => 'cron', 'exception' => $e]);
// Remove job from disabled app or old version of an app
$this->removeById($row['id']);
return null;
Expand Down

0 comments on commit b15ceb4

Please sign in to comment.