mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: log a warning when we can't build a background job
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
26ccbaed61
commit
b195ca3920
1 changed files with 1 additions and 0 deletions
|
|
@ -291,6 +291,7 @@ class JobList implements IJobList {
|
|||
$class = $row['class'];
|
||||
$job = new $class();
|
||||
} else {
|
||||
$this->logger->warning('failed to create instance of background job: ' . $row['class'], ['app' => 'cron', 'exception' => $e]);
|
||||
// Remove job from disabled app or old version of an app
|
||||
$this->removeById($row['id']);
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue