11097: Merge branch 'master' into 11097-reuse-impure
[arvados.git] / services / api / lib / crunch_dispatch.rb
index 1b1df360133a04a247ed58dbb04e67525f76045c..18a4250d12d398793f4b00aeb87a2dd45f0519e4 100644 (file)
@@ -95,7 +95,7 @@ class CrunchDispatch
       # 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)
+      state = "down" unless %w(idle alloc comp mix drng down).include?(state)
       slurm_nodes[hostname] = {state: state, job: nil}
     end
     each_slurm_line("squeue", "%j") do |hostname, job_uuid|