Skip to content

Commit d419f17

Browse files
Merge pull request #49204 from nextcloud/backport/48736/stable27
[stable27] fix: log a warning when we can't build a background job
2 parents 90e7667 + b15ceb4 commit d419f17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/BackgroundJob/JobList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ private function buildJob(array $row): ?IJob {
321321
$class = $row['class'];
322322
$job = new $class();
323323
} else {
324+
$this->logger->warning('failed to create instance of background job: ' . $row['class'], ['app' => 'cron', 'exception' => $e]);
324325
// Remove job from disabled app or old version of an app
325326
$this->removeById($row['id']);
326327
return null;

0 commit comments

Comments
 (0)