cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

Phalcon\Queue\Beanstalk crashes when beanstralkd is not available

Open demkinmaxim opened this issue 12 years ago • 2 comments

Hello. I'm using Phalcon 1.3.2

 $queue = new \Phalcon\Queue\Beanstalk(); 

Everythings works ok, but when the beanstalkd server is down I get: Unable to connect to Beanstalk server at 127.0.0.1:11300 (Connection refused)

And 500 error. It does not throw an exception, so I can't make a graceful degradation on something like that. There should be an exception or something to manage connections error.

Thank you!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

demkinmaxim avatar Jul 04 '14 09:07 demkinmaxim

Could you please try again using Phalcon 2?

andresgutierrez avatar Apr 14 '15 16:04 andresgutierrez

dear demkinmaxim you need install beanstalkd on server and run beanstalkd: Mac OS:

brew install beanstalkd
beanstalkd -p 11300

Ubuntu

apt-get install beanstalkd
beanstalkd -p 11300

after instal and run beanstalkd run your phalcon code

amin-ajami avatar Sep 01 '15 08:09 amin-ajami