Execute critical worker tasks, even if we're in daemon mode

This commit is contained in:
Philipp 2023-01-07 13:43:16 +01:00
parent 5b2e02889e
commit 80e8f4aa34
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -1315,8 +1315,8 @@ class Worker
return $added; return $added;
} }
// Quit on daemon mode // Quit on daemon mode, except the priority is critical (like for db updates)
if (Worker\Daemon::isMode()) { if (Worker\Daemon::isMode() && $priority !== self::PRIORITY_CRITICAL) {
return $added; return $added;
} }