technoweenie / coffee-resque

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workers stop polling mysteriously

liangzan opened this issue · comments

I'm running 2 workers in my production system. One polls at 500ms, the other at 15s. Somehow or rather, the workers can stop polling without notice. It always happens within 24 hours. I placed try-catch, process.on(uncaughtException) blocks. But it failed to show anything. I'm not sure where is the root cause. Let me know if there is clue. Thanks!

hmmm. I've been running 10 workers in a production setup now for over a month and a half now without issue. The only thing I can say for certain, without looking at your code, is that if the job doesn't callback the worker will stop polling. Sorry for being obvious.

Let us know if anything else comes up that helps you/us understand the issue further. In the meantime if you want a review of your code I'd be willing to take a look.

You may be right. Let me find out more. Thanks for the suggestion =)

You're right. It's my carelessness. One of my jobs don't have a callback. That should explain why it stopped polling. Thanks!