Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Beanstalk reserve can't get job from queue!

$queue = new Beanstalk($this->config->queue->toArray());
$queue->connect();
$queue->choose($this->config->queue->tube);
while(($job = $queue->reserve()) !== false) {
    $jobBody = $job->getBody();
    var_dump($jobBody);
    //Remove the job from the queue
    $job->delete();
}

[peekReady] can get jobs, but [reserve] don't give any response.

Thank you very much.

I missed a line of code

$queue->watch('myque')

Refer to this topic: https://forum.phalconphp.com/discussion/14625/q

You can mark Jonathan's answer as correct and solve the thread.