From 1a480f98954a55fee2b5a62fa831bd8d0a3bb0af Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Tue, 18 Jul 2017 10:30:42 -0400 Subject: [PATCH] Add a raise after stop_local_services just to be explicit --- awx/main/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 6065d7c66b..a306b96a61 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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)