[ARVADOS] updated: a487f2c9c1d6202b8049e53f5f70913e266146c1

git at public.curoverse.com git at public.curoverse.com
Tue Nov 4 17:28:38 EST 2014


Summary of changes:
 services/nodemanager/arvnodeman/daemon.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

       via  a487f2c9c1d6202b8049e53f5f70913e266146c1 (commit)
      from  596d448876dc75b50559cd8590aac7d53f06b25a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit a487f2c9c1d6202b8049e53f5f70913e266146c1
Author: Brett Smith <brett at curoverse.com>
Date:   Tue Nov 4 17:28:36 2014 -0500

    4357: Restore "any non-idle node is busy" behavior.

diff --git a/services/nodemanager/arvnodeman/daemon.py b/services/nodemanager/arvnodeman/daemon.py
index ba5f354..83e3ec9 100644
--- a/services/nodemanager/arvnodeman/daemon.py
+++ b/services/nodemanager/arvnodeman/daemon.py
@@ -193,10 +193,10 @@ class NodeManagerDaemonActor(actor_class):
         return up - len(self.shutdowns)
 
     def _nodes_busy(self):
-        return sum(1 for alloc in
-                   pykka.get_all(rec.actor.in_state('alloc') for rec in
+        return sum(1 for idle in
+                   pykka.get_all(rec.actor.in_state('idle') for rec in
                                  self.cloud_nodes.nodes.itervalues())
-                   if alloc)
+                   if idle is False)
 
     def _nodes_wanted(self):
         return min(len(self.last_wishlist) + self._nodes_busy(),

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list