Skip to content

Commit

Permalink
Merge pull request #49207 from nextcloud/backport/48736/stable30
Browse files Browse the repository at this point in the history
[stable30] fix: log a warning when we can't build a background job
  • Loading branch information
AndyScherzinger authored Nov 12, 2024
2 parents 049ed9f + b195ca3 commit 357524d
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 @@ -291,6 +291,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 357524d

Please sign in to comment.