php reserve command

64 views
Skip to first unread message

Mehdi Chati

unread,
Mar 17, 2017, 4:52:52 PM3/17/17
to beanstalk-talk
Hello,


I am newbie in Beanstalk.

I have producer/consumer written in PHP (Phalcon) which are working as expected.

But sometimes my consumer whith is command line stop to work. I have to start it again.

It is very simple PHP script :

                $queue->watch("my_tube");
                
                while (($job = $queue->reserve())) {
                          // consume the job
                          // ....
                          $job->delete();
                    }

When I start this command, with  :

php my_consumersphp  &

It works fine during several days, and one day it stops to work. If anybody has an idea about this issue, it will be very helpfull.

Thanks in advance,
Mehdi


Reply all
Reply to author
Forward
0 new messages