Skip to content

Commit

Permalink
Merge pull request #49204 from nextcloud/backport/48736/stable27
Browse files Browse the repository at this point in the history
[stable27] fix: log a warning when we can't build a background job
  • Loading branch information
nickvergessen authored Nov 12, 2024
2 parents 90e7667 + b15ceb4 commit d419f17
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 d419f17

Please sign in to comment.