Joined January 2014
·

Shai Rosenfeld

SF
·
·

https://github.com/shaiguitar/resque_stuck_queue/ is the heartbeat/watch approach resque doesn't have built-in. It doesn't automatically restart workers, but rather gives you the ability to configure it to do so. Alternatively send you a txt or whatever you want. It's helpful in cases where the queue is backed up as well. Been working well for me so far. From README:

If resque doesn't run jobs within a certain timeframe, it will trigger a pre-defined handler of your choice. You can use this to send an email, pager duty, add more resque workers, restart resque, send you a txt...whatever suits you.

Achievements
80 Karma
0 Total ProTip Views
Interests & Skills