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());
while(($job = $queue->reserve()) !== false) {
    $jobBody = $job->getBody();
    //Remove the job from the queue

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


Thank you very much.

I missed a line of code


Refer to this topic:

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