From 758fdccf08a1f120289ce28dc93e8122bd8343ee Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 16 Oct 2024 15:29:25 +0200 Subject: [PATCH] fix: log a warning when we can't build a background job Signed-off-by: Robin Appelman --- lib/private/BackgroundJob/JobList.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 7b23f4cdb3743..9e747efdb4d29 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -328,6 +328,7 @@ private function buildJob(array $row): ?IJob { $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;