Merge pull request #49204 from nextcloud/backport/48736/stable27

[stable27] fix: log a warning when we can't build a background job
This commit is contained in:
Joas Schilling 2024-11-12 09:03:36 +01:00 committed by GitHub
commit d419f17f92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -321,6 +321,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;