杀死所有delayed_job工人
我使用delayed_job作为守护进程 https://github .com/tobi/delayed_job/wiki/Running-Delayed::Worker-as-a-daemon
我不知道为什么,但有时我看到多个工作人员(不同的 pid)完成了不止一项工作,并且运行 stop
不会停止任何事情。有没有办法杀死这个进程/所有工作人员的所有守护进程?或者杀死一个特定的pid(我在共享主机上,所以kill/killall对我不可用)。
I use delayed_job as a daemon https://github.com/tobi/delayed_job/wiki/Running-Delayed::Worker-as-a-daemon
I can't tell why, but sometimes I see more than one job done by several workers (different pids), and running stop
doesn't stop anything. is there a way to kill all daemons of this proc/all workers? Or kill a specific pid (I'm on a shared hosting so kill/killall aren't available for me).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在此设置中无法访问“kill”将很快成为 PITA,并且令我难以置信的是,您将无法杀死自己启动的进程。
为了提高工作人员的可靠性,您可能想尝试使用elastoile_job的collectiveidea fork,并使用daemon-spawn gem而不是守护进程。我在这个组合上运气更好。
Not having access to "kill" in this setup will quickly become a PITA, and it boggles my mind that you wouldn't have the ability to kill processes you yourself started.
For increased worker dependability, you might want to try the collectiveidea fork of delayed_job, and using the daemon-spawn gem rather than daemons. I've had better luck with that combination.