]> git.mxchange.org Git - friendica.git/commitdiff
Execute critical worker tasks, even if we're in daemon mode
authorPhilipp <admin@philipp.info>
Sat, 7 Jan 2023 12:43:16 +0000 (13:43 +0100)
committerPhilipp <admin@philipp.info>
Sat, 7 Jan 2023 12:43:16 +0000 (13:43 +0100)
src/Core/Worker.php

index 2db9256d13804c372a5e0e98b44c77f67f1eb215..90bce0a88e5807df6fa0f9eed52829c6f4440fef 100644 (file)
@@ -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;
                }