How do I clear stuck/stale Resque workers?

后端 未结 15 794
你的背包
你的背包 2020-12-07 07:22

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.

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 07:47

    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}
    

提交回复
热议问题