]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: log a warning when we can't build a background job joblist-build-error-log 48736/head
authorRobin Appelman <robin@icewind.nl>
Wed, 16 Oct 2024 13:29:25 +0000 (15:29 +0200)
committerRobin Appelman <robin@icewind.nl>
Wed, 16 Oct 2024 13:29:25 +0000 (15:29 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/BackgroundJob/JobList.php

index f6410269d67267ece08350cd2359a82278fbca7c..555214217113296ac1ff652784d65934d0cf0436 100644 (file)
@@ -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;