How do I clear stuck/stale Resque workers?

后端 未结 15 789
你的背包
你的背包 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条回答
  •  青春惊慌失措
    2020-12-07 07:37

    I had stuck/stale resque workers here too, or should I say 'jobs', because the worker is actually still there and running fine, it's the forked process that is stuck.

    I chose the brutal solution of killing the forked process "Processing" since more than 5min, via a bash script, then the worker just spawn the next in queue, and everything keeps on going

    have a look at my script here: https://gist.github.com/jobwat/5712437

提交回复
热议问题