From 80e8f4aa34c4ccc5297e1b4c06735f0badc34a86 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 7 Jan 2023 13:43:16 +0100 Subject: [PATCH] Execute critical worker tasks, even if we're in daemon mode --- src/Core/Worker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 2db9256d13..90bce0a88e 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -1315,8 +1315,8 @@ class Worker return $added; } - // Quit on daemon mode - if (Worker\Daemon::isMode()) { + // Quit on daemon mode, except the priority is critical (like for db updates) + if (Worker\Daemon::isMode() && $priority !== self::PRIORITY_CRITICAL) { return $added; }