Merge pull request #49205 from nextcloud/backport/48736/stable28

[stable28] fix: log a warning when we can't build a background job
pull/49227/head
Andy Scherzinger 2024-11-12 11:41:40 +07:00 committed by GitHub
commit ec281fb0af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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