[slurm-users] Execute scripts on suspend and cancel
Oytun.Peksel at semcon.com
Mon Oct 14 11:40:29 UTC 2019
It is quite weird if slurm has no mechanism as described. I have been digging more into it and someone suggested a workaround using mail notifications. You use a script instead of the mail application and catch the event then use use sacct to see what is happening.
Two problems with this:
* There is no mail sent with suspended preemption
* If you use requeue instead there will be a mail event and you can catch it. Sacct will flag it as "preempted" so you know it is requeued. But then it would change it pending. So you really need to be quick to catch it. Also there is no distinctive flag for resuming.
Anyone has any other method to execute scripts during preemption?
oytun.peksel at semcon.com <mailto:oytun.peksel at semcon.com>
From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of Oytun Peksel
Sent: den 11 oktober 2019 09:10
To: slurm-users at lists.schedmd.com
Subject: [slurm-users] Execute scripts on suspend and cancel
I was wondering is there an option in Slurm to execute custom scripts before Suspend signal. What I need to do is to tell an application to release it's licenses before sending the suspend signal during preemption. I think went through all the documentation but could not find a mechanism like this.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the slurm-users