/** * Fill pool with jobs from queue */ protected function fillPool() { while (!$this->pool->isFull() && !$this->pool->queueIsEmpty()) { $job = $this->pool->dequeue(); $this->startJob($job); } }