Skip to content

Commit

Permalink
Merge pull request #49206 from nextcloud/backport/48736/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: log a warning when we can't build a background job
  • Loading branch information
AndyScherzinger authored Nov 12, 2024
2 parents b483558 + 45d2147 commit 219c508
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 @@ -307,6 +307,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 219c508

Please sign in to comment.