mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 17:51:06 -03:30
Add a raise after stop_local_services just to be explicit
This commit is contained in:
@@ -200,6 +200,9 @@ def cluster_node_heartbeat(self):
|
||||
inst.capacity = 0
|
||||
inst.save()
|
||||
stop_local_services(['uwsgi', 'celery', 'beat', 'callback', 'fact'])
|
||||
# We wait for the Popen call inside stop_local_services above
|
||||
# so the line below will rarely if ever be executed.
|
||||
raise RuntimeError("Shutting down.")
|
||||
|
||||
|
||||
@task(bind=True)
|
||||
|
||||
Reference in New Issue
Block a user