mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Add a raise after stop_local_services just to be explicit
This commit is contained in:
parent
8cf3a2867c
commit
1a480f9895
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user