Skip to content

Commit 219c508

Browse files
Merge pull request nextcloud#49206 from nextcloud/backport/48736/stable29
[stable29] fix: log a warning when we can't build a background job
2 parents b483558 + 45d2147 commit 219c508

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
@@ -307,6 +307,7 @@ private function buildJob(array $row): ?IJob {
307307
$class = $row['class'];
308308
$job = new $class();
309309
} else {
310+
$this->logger->warning('failed to create instance of background job: ' . $row['class'], ['app' => 'cron', 'exception' => $e]);
310311
// Remove job from disabled app or old version of an app
311312
$this->removeById($row['id']);
312313
return null;

0 commit comments

Comments
 (0)