src/RedisQueue.php
public function pop($queue)
    {
        //migrate the retry jobs
        $this->migrateRetryJobs($queue);

        $data = $this->client->lpop($this->getQueueNameWithPrefix($queue));

        if (!empty($data)) {
            $job = @unserialize($data);
            if ($job instanceof AbstractJob) {
                return $job;
            }
        }

        return null;
    }
public function pop($queue)
    {
        //migrate the retry jobs
        $this->migrateRetryJobs($queue);

        $data = $this->client->lpop($this->getQueueNameWithPrefix($queue));

        if (!empty($data)) {
            $job = @unserialize($data);
            if ($job instanceof AbstractJob) {
                return $job;
            }
        }

        return null;
    }
public function pop ( $ queue ) { //migrate the retry jobs $ this -> migrateRetryJobs ( $ queue ) ; $ data = $ this -> client -> lpop ( $ this -> getQueueNameWithPrefix ( $ queue ) ) ; if ( ! empty ( $ data ) ) { $ job = @ unserialize ( $ data ) ; if ( $ job instanceof AbstractJob ) { return $ job ; } } return null ; }
get a job from the queue
@param string $queue
@return AbstractJob|null
get a job from the queue