我如何清除卡住/陈旧的Resque工人? [英] How do I clear stuck/stale Resque workers?
本文介绍了我如何清除卡住/陈旧的Resque工人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不确定他们为什么不清除或者如何手动删除它们。
我在Heroku上使用Resis with Redis-to-Go和HireFire自动缩放工作人员。
解决方案
这些解决方案都不适用于我,我仍然可以在redis-web中看到:
0 of 10 Workers Working
最后,这对我来说清除了所有员工:
Resque.workers.each {| w | w.unregister_worker}
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.
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.
解决方案
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}
这篇关于我如何清除卡住/陈旧的Resque工人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文