mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
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.
This commit is contained in:
parent
8d57b84251
commit
e94bd128b8
@ -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'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user