Am 31.01.2012 um 11:56 schrieb Anton Löfgren:

> Yes, the admin user - it's called gridmgr in our installation. 
> 
> I want to terminate the jobs in a special/controlled way if possible. As far 
> as I've been able to deduce, the terminate method has been run under the 
> admin user account while the actual job has been run under the submitting 
> user's account. I'll try to verify that. 

This shouldn't be. And there is also no option to change the user in a 
terminate method, like it is possible for the prolog/epilog by mention him 
before a @.

What do you mean by "nice" shutdowns - generate a checkpoint file?

-- Reuti


> /Anton
> 
> -----Original Message-----
> From: Reuti [mailto:[email protected]] 
> Sent: den 31 januari 2012 11:09
> To: Anton Löfgren
> Cc: [email protected]
> Subject: Re: [gridengine users] SIGKILL as last resort terminate_method
> 
> Hi,
> 
> Am 31.01.2012 um 09:09 schrieb Anton Löfgren:
> 
>> I've been working on a terminate_method script to do nice takedown of jobs 
>> for a queue.
> 
> You want to drain the queue, or only terminate them in a special way? The 
> terminate method is run under the user account, and hence he can kill his own 
> job.
> 
> 
>> However, I now want to send SIGKILL to the job PID if none of my attempts at 
>> gracefully terminating the job have succeeded. Much like the default setting 
>> for terminate_method.
>> 
>> What I can't figure out is how I would go about to allow the "Grid Engine 
>> user"
> 
> You mean the admin user(s) of SGE? Some create a special account like 
> "sgeadmin" and group "gridware".
> 
> -- Reuti
> 
> 
>> (what do you call this kind of user, anyway?) send signals to my jobs. To 
>> clarify, I'm the owner of the job but this GE user is executing the script 
>> defined in terminate_method.
>> 
>> I'm on Sun Grid Engine 6.2.
>> 
>> Any hints or insight on how this works by default would be much appreciated.
>> 
>> Regards,
>> Anton
>> 
>> _______________________________________________
>> users mailing list
>> [email protected]
>> https://gridengine.org/mailman/listinfo/users
> 
> 


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

Reply via email to