Permalink
Browse files

Minor updates on daemon loading

  • Loading branch information...
lmrodriguezr committed Dec 18, 2018
1 parent 26cf3fc commit f0d1fcabdf872aaed1decaa2922e5351c5191ff0
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/miga/daemon.rb
@@ -100,7 +100,7 @@ def load_status
status.keys.each do |i|
status[i].map! do |j|
j.tap do |k|
unless k[:ds].nil? or k[:ds] == 'miga-project'
unless k[:ds].nil? or k[:ds_name] == 'miga-project'
k[:ds] = project.dataset(k[:ds_name])
end
k[:job] = k[:job].to_sym unless k[:job].nil?
@@ -109,6 +109,7 @@ def load_status
end
@jobs_running = status[:jobs_running]
@jobs_to_run = status[:jobs_to_run]
say "- jobs left running: #{@jobs_running.size}"
purge!
say "- jobs running: #{@jobs_running.size}"
say "- jobs to run: #{@jobs_to_run.size}"

0 comments on commit f0d1fca

Please sign in to comment.