diff --git a/src/AutoScaler.php b/src/AutoScaler.php index 10a329c2..9946edbc 100644 --- a/src/AutoScaler.php +++ b/src/AutoScaler.php @@ -95,7 +95,6 @@ protected function numberOfWorkersPerQueue(Supervisor $supervisor, Collection $t $timeToClearAll = $timeToClear->sum(); return $timeToClear->mapWithKeys(function ($timeToClear, $queue) use ($supervisor, $timeToClearAll) { - if ($timeToClearAll > 0 && $supervisor->options->autoScaling()) { return [$queue => (($timeToClear / $timeToClearAll) * $supervisor->options->maxProcesses)]; @@ -105,7 +104,6 @@ protected function numberOfWorkersPerQueue(Supervisor $supervisor, Collection $t } return [$queue => $supervisor->options->maxProcesses / count($supervisor->processPools)]; - })->sort(); }