mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Switch to using SIGTERM for canceling a job
This commit is contained in:
parent
f121228d1a
commit
f62b9ff2c0
@ -371,7 +371,7 @@ class BaseTask(Task):
|
||||
# Refresh model instance from the database (to check cancel flag).
|
||||
instance = self.update_model(instance.pk)
|
||||
if instance.cancel_flag:
|
||||
os.kill(child.pid, signal.SIGINT)
|
||||
os.kill(child.pid, signal.SIGTERM)
|
||||
time.sleep(3)
|
||||
# The following line causes orphaned ansible processes
|
||||
# child.terminate(canceled)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user