Ansible folks say SIGINT works.... doesn't seem to stop the playbook to

me, but whatever
This commit is contained in:
Matthew Jones 2014-12-10 13:44:08 -05:00
parent 1268fb6191
commit 6a162c2a3b

View File

@ -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)