Skip to content

Commit

Permalink
more isrunning qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Ponet committed May 21, 2021
1 parent 39c35e4 commit c5eaea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serverAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function slurm_isrunning(job::DFJob)
id = slurm_jobid(job)
if id != -1
line = getfirst(x -> occursin("JobState", x), slurm_process_command(`scontrol show job $id`))
return split(split(line)[1], "=")[2] == "RUNNING"
return split(split(line)[1], "=")[2] ("RUNNING", "PENDING", "CONFIGURING")
else
@warn "No jobid found. Was your job submitted through slurm?"
return false
Expand Down

0 comments on commit c5eaea9

Please sign in to comment.