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

This commit is contained in:
Philipp Holzer 2023-01-07 13:43:16 +01:00
parent 5b2e02889e
commit 80e8f4aa34
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432

View 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;
}