Re: [slurm-users] Execute scripts on suspend and cancel

2019-10-17 Thread Michael Jennings
On Thursday, 17 October 2019, at 16:50:29 (+), Goetz, Patrick G wrote: > Are applications even aware when they've been hit by a SIGSTP? This > idea of a license being released under these circumstances just > seems very unlikely. No, which is why SIGSTOP cannot be caught. The action is carr

Re: [slurm-users] Execute scripts on suspend and cancel

2019-10-17 Thread Goetz, Patrick G
Are applications even aware when they've been hit by a SIGSTP? This idea of a license being released under these circumstances just seems very unlikely. On 10/15/19 1:57 PM, Brian Andrus wrote: > It seems that there are some details that would need addressed. > > A suspend signal is nothing mo

Re: [slurm-users] Execute scripts on suspend and cancel

2019-10-16 Thread Brian Andrus
tunĀ Peksel* oytun.pek...@semcon.com <mailto:oytun.pek...@semcon.com> +46739205917 *From:*slurm-users *On Behalf Of *Brian Andrus *Sent:* den 15 oktober 2019 20:58 *To:* slurm-users@lists.schedmd.com *Subject:* Re: [slurm-users] Execute scripts on suspen

Re: [slurm-users] Execute scripts on suspend and cancel

2019-10-15 Thread Oytun Peksel
ytun.pek...@semcon.com> +46739205917 From: slurm-users On Behalf Of Brian Andrus Sent: den 15 oktober 2019 20:58 To: slurm-users@lists.schedmd.com Subject: Re: [slurm-users] Execute scripts on suspend and cancel It seems that there are some details that would need addressed. A suspend signal

Re: [slurm-users] Execute scripts on suspend and cancel

2019-10-15 Thread Brian Andrus
It seems that there are some details that would need addressed. A suspend signal is nothing more than sending a SIGSTP (like hitting ctrl-s), so the application is still in memory awaiting SIGCONT So what should happen when it continues and there are no more licenses? So the proper place for

Re: [slurm-users] Execute scripts on suspend and cancel

2019-10-14 Thread Oytun Peksel
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: *