[ARVADOS] created: ff6753eaddf04575b9e8af7a7101b9c0f2d6903e

git at public.curoverse.com git at public.curoverse.com
Wed Oct 28 11:38:02 EDT 2015


        at  ff6753eaddf04575b9e8af7a7101b9c0f2d6903e (commit)


commit ff6753eaddf04575b9e8af7a7101b9c0f2d6903e
Author: Brett Smith <brett at curoverse.com>
Date:   Wed Oct 28 11:37:58 2015 -0400

    7668: crunch-dispatch gets node stats from properties field.
    
    This information moved from the info field to the properties field as
    part of #3605.  This simply updates crunch-dispatch to catch up with
    the change.

diff --git a/services/api/script/crunch-dispatch.rb b/services/api/script/crunch-dispatch.rb
index 4a1fdbc..9fb2566 100755
--- a/services/api/script/crunch-dispatch.rb
+++ b/services/api/script/crunch-dispatch.rb
@@ -194,7 +194,7 @@ class Dispatcher
     # Otherwise, return nil.
     need_procs = NODE_CONSTRAINT_MAP.each_pair.map do |job_key, node_key|
       Proc.new do |node|
-        positive_int(node.info[node_key], 0) >=
+        positive_int(node.properties[node_key], 0) >=
           positive_int(job.runtime_constraints[job_key], 0)
       end
     end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list