Skip to content

Commit ec281fb

Browse files
Merge pull request #49205 from nextcloud/backport/48736/stable28
[stable28] fix: log a warning when we can't build a background job
2 parents ceb933c + 758fdcc commit ec281fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/private/BackgroundJob/JobList.php

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

0 commit comments

Comments
 (0)