Bugfix: The provided worker priority had been ignored
This commit is contained in:
parent
e90b3f606d
commit
6289e307aa
1 changed files with 2 additions and 2 deletions
|
@ -1018,6 +1018,8 @@ class Worker
|
|||
$dont_fork = Config::get("system", "worker_dont_fork");
|
||||
$created = DateTimeFormat::utcNow();
|
||||
|
||||
$run_parameter = array_shift($args);
|
||||
|
||||
if (is_int($run_parameter)) {
|
||||
$priority = $run_parameter;
|
||||
} elseif (is_array($run_parameter)) {
|
||||
|
@ -1032,8 +1034,6 @@ class Worker
|
|||
}
|
||||
}
|
||||
|
||||
array_shift($args);
|
||||
|
||||
$parameters = json_encode($args);
|
||||
$found = dba::exists('workerqueue', ['parameter' => $parameters, 'done' => false]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue