mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 03:31:10 -03:30
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user