Skip to content
Snippets Groups Projects
Commit 9cfcdf20 authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Remove srun references

parent 96cb1a54
No related branches found
No related tags found
No related merge requests found
...@@ -58,18 +58,19 @@ exec echo "exit 0" >>$file_in ...@@ -58,18 +58,19 @@ exec echo "exit 0" >>$file_in
exec $bin_chmod 700 $file_in exec $bin_chmod 700 $file_in
# #
# Spawn a shell via srun that uses stdin/out/err and confirm their contents # Spawn a shell via slaunch that uses stdin/out/err and confirm their contents
# #
set timeout $max_job_delay set timeout $max_job_delay
spawn $salloc -N1 -t1 $slaunch --local-input=$file_in --local-output=$file_out --local-error=$file_err $bin_bash set io_options "--local-input=$file_in --local-output=$file_out --local-error=$file_err"
set salloc_pid [spawn $salloc -N1 -t1 $slaunch $io_options $bin_bash]
expect { expect {
-re "Unable to contact" { -re "Unable to contact" {
send_user "\nFAILURE: slurm appears to be down\n" send_user "\nFAILURE: slurm appears to be down\n"
exit 1 exit 1
} }
timeout { timeout {
send_user "\nFAILURE: srun not responding\n" send_user "\nFAILURE: salloc/slaunch not responding\n"
kill_srun exec $bin_kill -TERM "-$salloc_pid"
set exit_code 1 set exit_code 1
exp_continue exp_continue
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment