Execute critical worker tasks, even if we're in daemon mode
This commit is contained in:
parent
5b2e02889e
commit
80e8f4aa34
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue