diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 829be476ef..a8ad070705 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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)