resque-sliders icon indicating copy to clipboard operation
resque-sliders copied to clipboard

Killing an individual proccess

Open j-mcnally opened this issue 11 years ago • 2 comments

So while its great to restart the server, its useful to kill off a single proccess, ive modified the UI and the worker to check if a proccess in in a new redis set called terminate, and if it is and if that proccess belongs to its host KEWatcher would terminate it.

Then based on scaling rules would restart it.

Im a bit new to redis / resque so there are probably better ways to do it, but i thought id start a conversation

See this commit: 9515d9f66f3e7dae3d4694b958bd0c53c70210d2

j-mcnally avatar Aug 21 '13 00:08 j-mcnally

Hey,

Could you explain your use case for wanting to kill off a single process? Would the user trigger the kill for the particular process, or would some resource threshold be met and the kill be triggered?

kmullin avatar Sep 03 '13 18:09 kmullin

In the code ive hacked together the use can kill a pid if its stuck etc. automated would be super nice basically to set a timeout

Sent from my iPhone

On Sep 3, 2013, at 1:02 PM, Kevin Mullin [email protected] wrote:

Hey,

Could you explain your use case for wanting to kill off a single process? Would the user trigger the kill for the particular process, or would some resource threshold be met and the kill be triggered?

— Reply to this email directly or view it on GitHubhttps://github.com/kmullin/resque-sliders/issues/6#issuecomment-23733685 .

j-mcnally avatar Sep 03 '13 18:09 j-mcnally