mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Merge pull request #1750 from chrismeyersfsu/fix-ansible_hang
fixes hanging chads, if chads were ansible
This commit is contained in:
@@ -558,7 +558,7 @@ class BaseTask(Task):
|
|||||||
instance = self.update_model(instance.pk)
|
instance = self.update_model(instance.pk)
|
||||||
if instance.cancel_flag:
|
if instance.cancel_flag:
|
||||||
try:
|
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
|
# NOTE: Refactor this once we get a newer psutil across the board
|
||||||
if not psutil:
|
if not psutil:
|
||||||
os.kill(child.pid, signal.SIGKILL)
|
os.kill(child.pid, signal.SIGKILL)
|
||||||
|
|||||||
Reference in New Issue
Block a user