librelist archives

« back to archive

Stuck queues, a workaround

Stuck queues, a workaround

From:
shai rosenfeld
Date:
2014-01-07 @ 21:48
Just found this list, hope it's the right place to send this sort of thing.

Over the course of using resque (it's been great!) I've encountered
numerous problems coming up with resque "hanging", being stuck, not
processing jobs and the like. It's hard to debug these issues when I think
the underlying problems are varied and change from setup to setup. Not to
mention human errors.

Anyway, usually a resque restart fixes the problem.

In any case, I've started working on
https://github.com/shaiguitar/resque_stuck_queue#readme which helps massage
the pain when you run into this sort of situation. Also helps with backed
up queues. The tldr of it is:

You set a handler you want called. If after X time jobs aren't being
processed, that handler gets called.

Been running this on one of our systems and seems to be reliable for me
thus far.

Let me know if you have any thoughts/comments/feedback.

Thanks!

--
Shai Rosenfeld
(510) 248-9459

Re: [resque] Stuck queues, a workaround

From:
Steve Klabnik
Date:
2014-01-07 @ 23:20
Thank you for sharing! This is exactly the right place to do so.

Re: [resque] Stuck queues, a workaround

From:
shai rosenfeld
Date:
2014-01-07 @ 23:24
Great. Comments/feedback/thoughts welcome!


On Tue, Jan 7, 2014 at 3:20 PM, Steve Klabnik <steve@steveklabnik.com>wrote:

> Thank you for sharing! This is exactly the right place to do so.
>



-- 
--
Shai Rosenfeld
(510) 248-9459