[gridengine users] Signal sent to processes on requeue
Ben De Luca
bdeluca at gmail.com
Tue Jan 31 22:10:42 UTC 2012
looks like it might be simplest.
On Tue, Jan 31, 2012 at 9:51 PM, Ben De Luca <bdeluca at gmail.com> wrote:
> Strangely im pondering this issue at the moment. If a python process
> is killed any process started with subprocess does not die.
> The two methods im following,
> 1. a reaper, the grid job starts a python process (parent) that starts
> two other jobs, the task, and the reaper.
> A. The task is the process I want to run.
> B. The reaper, sits waiting to see if the parent python process
> disappears, if it does it cleans up process A.
> When Parent sees A finishes normally it kills B.
> If Parent is killed B kills A.
> 2. I think an epilog can be run to clean up.
> On Tue, Jan 31, 2012 at 8:00 PM, Hugh Macdonald
> <hugh.macdonald at nvizible.com> wrote:
>> I've got a python script here that is run through Grid. When I requeue the
>> job, I want to catch the signal in the script, to do a bit of cleanup before
>> exiting. I don't seem to be able to catch the signal, making me assume that
>> it's SIGKILL that is being sent. Am I right in this assumption, and, if so,
>> is there any way to change it to SIGTERM?
>> Hugh Macdonald
>> nvizible – VISUAL EFFECTS
>> hugh.macdonald at nvizible.com
>> +44(0) 20 3167 3860
>> +44(0) 7773 764 708
>> users mailing list
>> users at gridengine.org
More information about the users