Re: [slurm-users] epilog when job is killed for max time

2018-11-08 Thread Noam Bernstein
Thanks - that's an awesome, yet horrible, hack :) Noam > On Nov 8, 2018, at 3:26 AM, Josep Manel Andrés Moscardó > wrote: > > Hi, > Somebody else gave me this piece of code (I hope he doesn't mind me sharing > it :) , at least it

Re: [slurm-users] epilog when job is killed for max time

2018-11-08 Thread Josep Manel Andrés Moscardó
Hi, Somebody else gave me this piece of code (I hope he doesn't mind me sharing it :) , at least it is how they do it: #!/bin/bash #SBATCH --signal=B:USR1@300 #<-- This will make Slurm send signal USR1 to the bash process 300 seconds before the time limit #SBATCH -t 00:06:00 resubmit()