Skip to content

Commit 0741373

Browse files
committed
fix: log a warning when we can't build a background job
Signed-off-by: Robin Appelman <[email protected]>
1 parent cd3dc17 commit 0741373

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)