mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Handle psutil errors when terminating tasks.
This commit is contained in:
parent
e8f01c9029
commit
9c444e084e
@ -618,7 +618,7 @@ class BaseTask(Task):
|
||||
for child_proc in child_procs:
|
||||
os.kill(child_proc.pid, signal.SIGKILL)
|
||||
os.kill(main_proc.pid, signal.SIGKILL)
|
||||
except TypeError:
|
||||
except (TypeError, psutil.Error):
|
||||
os.kill(job.pid, signal.SIGKILL)
|
||||
else:
|
||||
os.kill(job.pid, signal.SIGTERM)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user