mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 12:10:06 -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:
@@ -342,8 +342,6 @@ def cluster_node_heartbeat(self):
|
|||||||
stop_local_services(['uwsgi', 'celery', 'beat', 'callback'], communicate=False)
|
stop_local_services(['uwsgi', 'celery', 'beat', 'callback'], communicate=False)
|
||||||
raise RuntimeError("Shutting down.")
|
raise RuntimeError("Shutting down.")
|
||||||
for other_inst in lost_instances:
|
for other_inst in lost_instances:
|
||||||
if other_inst.capacity == 0:
|
|
||||||
continue
|
|
||||||
try:
|
try:
|
||||||
other_inst.capacity = 0
|
other_inst.capacity = 0
|
||||||
other_inst.save(update_fields=['capacity'])
|
other_inst.save(update_fields=['capacity'])
|
||||||
|
|||||||
Reference in New Issue
Block a user