mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
Ansible folks say SIGINT works.... doesn't seem to stop the playbook to
me, but whatever
This commit is contained in:
@@ -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.SIGTERM)
|
||||
os.kill(child.pid, signal.SIGINT)
|
||||
time.sleep(3)
|
||||
# The following line causes orphaned ansible processes
|
||||
# child.terminate(canceled)
|
||||
|
||||
Reference in New Issue
Block a user