src/Console/BaseCommand.php
protected function reserveJob($tube)
    {
        try {
            return $this->getPheanstalk()->reserveFromTube($tube, 0);
        } catch (ServerException $e) {
            if ($this->isNotFoundException($e)) {
                return;
            }

            throw $e;
        }
    }
protected function reserveJob($tube)
    {
        try {
            return $this->getPheanstalk()->reserveFromTube($tube, 0);
        } catch (ServerException $e) {
            if ($this->isNotFoundException($e)) {
                return;
            }

            throw $e;
        }
    }
Reserve a job from the tube.

@param $tube

@throws ServerException
@throws \Exception

@return bool|object|\Pheanstalk\Job|void