mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -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:
parent
1e037098f2
commit
43c5105a57
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user