Skip to content

Commit

Permalink
Merge pull request #49205 from nextcloud/backport/48736/stable28
Browse files Browse the repository at this point in the history
[stable28] fix: log a warning when we can't build a background job
  • Loading branch information
AndyScherzinger authored Nov 12, 2024
2 parents ceb933c + 758fdcc commit ec281fb
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 @@ -328,6 +328,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 ec281fb

Please sign in to comment.