Fix wrong use of array_shift in Core\Worker
This commit is contained in:
parent
f597f3b378
commit
05d8bf6b54
|
@ -850,7 +850,7 @@ class Worker
|
|||
}
|
||||
|
||||
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]);
|
||||
return $priority;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue