No, the "terminate_method" in the queue definition and will be called to 
terminate the job. Before killing the process, we reschedule the job. And maybe 
you have to fiddle with $SGE_TASK_ID here too.

The prolog would executed before the job.

-- Reuti

Am 10.09.2012 um 23:26 schrieb Lars van der bijl <[email protected]>:

> On 10 September 2012 17:57, Reuti <[email protected]> wrote:
>> Am 10.09.2012 um 17:46 schrieb Reuti:
>> 
>>> <snip>
>>> Okay, now I see. You could use a script like:
>> 
>> Ups:
>> 
>>> #!/bin/sh
>>> . /usr/sge/default/common/settings.sh
>>> qalter -h u $JOB_ID
>>> qmod -rj $JOB_ID
>>> kill -9 -- -$1
>>> 
>>> for the "terminate_method $job_pid" the queue definition. Seeing "hRq" as a 
>>> dormant state.
>> 
>> "terminate_method path_to_your_script $job_pid"
> 
> do you mean the prolog? so that after the task finishes we put it back
> in a hold state?

_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to