Execute critical worker tasks, even if we're in daemon mode
This commit is contained in:
parent
5b2e02889e
commit
80e8f4aa34
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user