mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02: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.capacity = 0
|
||||||
inst.save()
|
inst.save()
|
||||||
stop_local_services(['uwsgi', 'celery', 'beat', 'callback', 'fact'])
|
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)
|
@task(bind=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user