ruby-on-railsruby-on-rails-3herokuredisresque

How do I clear stuck/stale Resque workers?


As you can see from the attached image, I've got a couple of workers that seem to be stuck. Those processes shouldn't take longer than a couple of seconds.

enter image description here

I'm not sure why they won't clear or how to manually remove them.

I'm on Heroku using Resque with Redis-to-Go and HireFire to automatically scale workers.


Solution

  • None of these solutions worked for me, I would still see this in redis-web:

    0 out of 10 Workers Working
    

    Finally, this worked for me to clear all the workers:

    Resque.workers.each {|w| w.unregister_worker}