From 43c5105a577dc0de221f53183c818785a24b3686 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 11 Jul 2016 14:36:10 -0400 Subject: [PATCH] No more Mr. Nice Tower or how I learned to stop worrying and use SIGKILL. Ansible has a bug that could potentially leave tower's jobs hanging around indefinitely requiring manual shell intervention. I'm going to put this here and until Ansible can get to the bottom of it. --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 04efceb3ae..f4d442fbeb 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -599,7 +599,7 @@ class BaseTask(Task): else: child_procs = main_proc.get_children(recursive=True) for child_proc in child_procs: - os.kill(child_proc.pid, signal.SIGTERM) + os.kill(child_proc.pid, signal.SIGKILL) except TypeError: os.kill(child.pid, signal.SIGKILL) else: