Also call `onFinalFailure` in the cleanup cronjob.
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 21 Feb 2024 11:08:03 +0000 (12:08 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 21 Feb 2024 11:08:03 +0000 (12:08 +0100)
wcfsetup/install/files/lib/system/cronjob/BackgroundQueueCleanUpCronjob.class.php

index a2c1d9da44dab0620c4b24eedfa0ff8730733b6c..eeda3710d2940e6c9403706c4cb5d7792d4e1a54 100644 (file)
@@ -52,6 +52,8 @@ class BackgroundQueueCleanUpCronjob extends AbstractCronjob
 
                         if ($job->getFailures() <= $job::MAX_FAILURES) {
                             BackgroundQueueHandler::getInstance()->enqueueIn($job, $job->retryAfter());
+                        } else {
+                            $job->onFinalFailure();
                         }
                     }
                 } catch (\Exception $e) {