Skip to content

Commit 2ef4de4

Browse files
committed
contrib/intel/jenkins: Flip timeout in slurm_batch to ignore queue time.
Queue time should be ignored in the slurm batch timeout since the Jenkinsfile timeout takes care of that case. The timeout is supposed to be used to kill a hanging process before the jenkinsfile timeout kills it to relinquish resources quicker for other jobs. Signed-off-by: Zach Dworkin <zachary.dworkin@intel.com>
1 parent c3a8a44 commit 2ef4de4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/intel/jenkins/Jenkinsfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ def run_python(version, command, output=null) {
1919
def slurm_batch(partition, node_num, output, command) {
2020

2121
try {
22-
sh """timeout $TIMEOUT sbatch --partition=${partition} -N ${node_num} \
23-
--wait -o ${output} --open-mode=append --wrap=\'env; ${command}\'
22+
sh """sbatch --partition=${partition} -N ${node_num} \
23+
--wait -o ${output} --open-mode=append \
24+
--wrap=\'env; timeout $TIMEOUT ${command}\'
2425
"""
2526
} catch (Exception e) {
2627
sh "scancel \$(cat ${output} | grep SLURM_JOBID | cut -d \"=\" -f 2)"

0 commit comments

Comments
 (0)