[ARVADOS] created: 023517001bf8efd7d44ab33d2a79d92d2ff30a30

git at public.curoverse.com git at public.curoverse.com
Thu Nov 6 14:22:44 EST 2014


        at  023517001bf8efd7d44ab33d2a79d92d2ff30a30 (commit)


commit 023517001bf8efd7d44ab33d2a79d92d2ff30a30
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Nov 6 14:22:40 2014 -0500

    4334: Convert "idle*" state to "down"

diff --git a/services/api/script/crunch-dispatch.rb b/services/api/script/crunch-dispatch.rb
index b3ab9bf..81e1ef9 100755
--- a/services/api/script/crunch-dispatch.rb
+++ b/services/api/script/crunch-dispatch.rb
@@ -93,6 +93,9 @@ class Dispatcher
   def slurm_status
     slurm_nodes = {}
     each_slurm_line("sinfo", "%t") do |hostname, state|
+      # Treat nodes in idle* state as down, because the * means that slurm
+      # hasn't been able to communicate with it recently.
+      state.sub!(/^idle\*/, "down")
       state.sub!(/\W+$/, "")
       state = "down" unless %w(idle alloc down).include?(state)
       slurm_nodes[hostname] = {state: state, job: nil}

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list