We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

beanstalk peekBuried() error

Hi, i have a problem with the peekBuried() function:

$job = $queue->peekBuried();  
echo var_dump($queue->peekBuried()); // false 
$job->kick(); //PHP Fatal error:  Call to a member function kick() on a non-object

i don't understand why the peekBuried() don't recognize the buried element. Any idea?

Thnak you

$job = $queue->peekBuried(); is returning false as there are no jobs remaining to process

edited Jun '15

$job = $queue->peekBuried(); is returning false as there are no jobs remaining to process

Are you talking about "buried jobs"? Because i have it, for this reason i used peekBuried().