Re: [slurm-users] Slurm preemption grace time

2017-11-20 Thread Ailing Zhang
Thanks Jeffrey, bypassing SIGTERM solved my problem! :D Best, Ailing On Mon, Nov 20, 2017 at 8:33 AM, Jeffrey Frey wrote: > • *GraceTime*: Specifies a time period for a job to execute after it is > selected to be preempted. This option can be specified by partition or QOS > using the slurm.conf

Re: [slurm-users] Slurm preemption grace time

2017-11-20 Thread Jon Tegner
Hi, could you try submitting the following script: Script job.sh: ** #!/bin/bash #SBATCH -p test-low #SBATCH -n 3 #SBATCH -t 12:00:00 sig_term() { echo "function sig_term called.  Exiting" echo 'sig_term' > slask_term echo $(date) >> slask_term } # associate the funct

Re: [slurm-users] Slurm preemption grace time

2017-11-20 Thread Jeffrey Frey
• GraceTime: Specifies a time period for a job to execute after it is selected to be preempted. This option can be specified by partition or QOS using the slurm.conf file or database respectively. This option is only honored if PreemptMode=CANCEL. The GraceTime is specified in seconds and the de

[slurm-users] Slurm preemption grace time

2017-11-20 Thread Ailing Zhang
Hi slurm community, I'm testing preemption with partition based preemption. Partitions test-high and test-low share the same nodes. I set GraceTime=600 and PreemptMode=CANCEL in test-low. But once I submitted a job to test-high, job in test-low is immediately killed without any grace time. Here is