coderunner 0.13.16 → 0.13.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/coderunner.gemspec +1 -1
- data/lib/coderunner/run.rb +1 -1
- data/lib/coderunner/system_modules/slurm.rb +2 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.13.
|
1
|
+
0.13.17
|
data/coderunner.gemspec
CHANGED
data/lib/coderunner/run.rb
CHANGED
@@ -280,12 +280,12 @@ def process_directory
|
|
280
280
|
puts 'Results file possibly corrupted for ' + @run_name
|
281
281
|
end
|
282
282
|
|
283
|
+
@running = (@@current_status =~ Regexp.new(@job_no.to_s)) ? true : false
|
283
284
|
if methods.include? :get_run_status
|
284
285
|
@status = get_run_status(@job_no, @@current_status) rescue :Unknown
|
285
286
|
else
|
286
287
|
@status ||= :Unknown
|
287
288
|
end
|
288
|
-
@running = (@@current_status =~ Regexp.new(@job_no.to_s)) ? true : false
|
289
289
|
#logi '@@current_status', @@current_status, '@job_no', @job_no
|
290
290
|
#logi '@running', @running
|
291
291
|
process_directory_code_specific
|
@@ -108,11 +108,13 @@ def get_run_status(job_no, current_status)
|
|
108
108
|
unless line
|
109
109
|
return :Unknown
|
110
110
|
else
|
111
|
+
@running = true
|
111
112
|
if line =~ /\sPD\s/
|
112
113
|
return :Queueing
|
113
114
|
elsif line =~ /\sR\s/
|
114
115
|
return :Running
|
115
116
|
elsif line =~ /\sC\s/
|
117
|
+
@running = false
|
116
118
|
return :Unknown
|
117
119
|
else
|
118
120
|
ep 'line', line
|