public function scale(Supervisor $supervisor)
    {
        $pools = $this->poolsByQueue($supervisor);

        $workers = $this->numberOfWorkersPerQueue(
            $supervisor, $this->timeToClearPerQueue($supervisor, $pools)
        );

        $workers->each(function ($workers, $queue) use ($supervisor, $pools) {
            $this->scalePool($supervisor, $pools[$queue], $workers);
        });
    }
public function scale(Supervisor $supervisor)
    {
        $pools = $this->poolsByQueue($supervisor);

        $workers = $this->numberOfWorkersPerQueue(
            $supervisor, $this->timeToClearPerQueue($supervisor, $pools)
        );

        $workers->each(function ($workers, $queue) use ($supervisor, $pools) {
            $this->scalePool($supervisor, $pools[$queue], $workers);
        });
    }
public function scale ( Supervisor $ supervisor ) { $ pools = $ this -> poolsByQueue ( $ supervisor ) ; $ workers = $ this -> numberOfWorkersPerQueue ( $ supervisor , $ this -> timeToClearPerQueue ( $ supervisor , $ pools ) ) ; $ workers -> each ( function ( $ workers , $ queue ) use ( $ supervisor , $ pools ) { $ this -> scalePool ( $ supervisor , $ pools [ $ queue ] , $ workers ) ; } ) ; }
Balance the workers on the given supervisor.

@param  \Laravel\Horizon\Supervisor  $supervisor
@return void
Balance the workers on the given supervisor .