Add a raise after stop_local_services just to be explicit

This commit is contained in:
Wayne Witzel III 2017-07-18 10:30:42 -04:00
parent 8cf3a2867c
commit 1a480f9895

View File

@ -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)