mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
fixes hanging chads, if chads were ansible
This commit is contained in:
parent
ce14c0daff
commit
b18dd8fe21
@ -558,7 +558,7 @@ class BaseTask(Task):
|
||||
instance = self.update_model(instance.pk)
|
||||
if instance.cancel_flag:
|
||||
try:
|
||||
if tower_settings.AWX_PROOT_ENABLED:
|
||||
if tower_settings.AWX_PROOT_ENABLED and self.should_use_proot(instance):
|
||||
# NOTE: Refactor this once we get a newer psutil across the board
|
||||
if not psutil:
|
||||
os.kill(child.pid, signal.SIGKILL)
|
||||
|
Loading…
Reference in New Issue
Block a user