Skip to content

Commit 8fdae44

Browse files
Merge pull request #48736 from nextcloud/joblist-build-error-log
fix: log a warning when we can't build a background job
2 parents 7c67df6 + 0741373 commit 8fdae44

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
@@ -291,6 +291,7 @@ private function buildJob(array $row): ?IJob {
291291
$class = $row['class'];
292292
$job = new $class();
293293
} else {
294+
$this->logger->warning('failed to create instance of background job: ' . $row['class'], ['app' => 'cron', 'exception' => $e]);
294295
// Remove job from disabled app or old version of an app
295296
$this->removeById($row['id']);
296297
return null;

0 commit comments

Comments
 (0)