Skip to content

Commit

Permalink
Specify the squeue format explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanJovic-NOAA committed Jul 26, 2024
1 parent e6ec3d1 commit 4830205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rt_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ submit_and_wait() {
set -e
;;
slurm)
job_info=$( squeue -u "${USER}" -j "${jobid}" )
job_info=$( squeue -u "${USER}" -j "${jobid}" -o '%i %T' )
;;
*)
;;
Expand All @@ -205,7 +205,7 @@ submit_and_wait() {

# Getting the status letter from scheduler info
status=$( grep "${jobid}" <<< "${job_info}" )
status=$( awk '{print $5}' <<< "${status}" )
status=$( awk '{print $2}' <<< "${status}" )

case ${status} in
#waiting cases
Expand Down

0 comments on commit 4830205

Please sign in to comment.