lib/coderunner/system_modules/slurm.rb in coderunner-0.13.16 vs lib/coderunner/system_modules/slurm.rb in coderunner-0.13.17
- old
+ new
@@ -106,14 +106,16 @@
end
line = current_status.split(/\n/).grep(Regexp.new(job_no.to_s))[0]
unless line
return :Unknown
else
+ @running = true
if line =~ /\sPD\s/
return :Queueing
elsif line =~ /\sR\s/
return :Running
elsif line =~ /\sC\s/
+ @running = false
return :Unknown
else
ep 'line', line
raise 'Could not get run status'
end