Fix wrong use of array_shift in Core\Worker
This commit is contained in:
parent
f597f3b378
commit
05d8bf6b54
1 changed files with 1 additions and 1 deletions
|
@ -850,7 +850,7 @@ class Worker
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($waiting)) {
|
if (!empty($waiting)) {
|
||||||
$priority = array_shift(array_keys($waiting));
|
$priority = array_keys($waiting)[0];
|
||||||
Logger::info('No underassigned priority found, now taking the highest priority.', ['priority' => $priority]);
|
Logger::info('No underassigned priority found, now taking the highest priority.', ['priority' => $priority]);
|
||||||
return $priority;
|
return $priority;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue