From e94bd128b8f58c856b8bea669fa2bc9bca8e8b88 Mon Sep 17 00:00:00 2001 From: chris meyers Date: Thu, 1 Mar 2018 11:21:54 -0500 Subject: [PATCH] reap all nodes that havn't checked in * Before this change we would exclude the reaping of new nodes. With this change, new nodes will be considered for reaping just like old nodes. --- awx/main/tasks.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 7bf41c515d..290f8f4acd 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -342,8 +342,6 @@ def cluster_node_heartbeat(self): stop_local_services(['uwsgi', 'celery', 'beat', 'callback'], communicate=False) raise RuntimeError("Shutting down.") for other_inst in lost_instances: - if other_inst.capacity == 0: - continue try: other_inst.capacity = 0 other_inst.save(update_fields=['capacity'])