From 6a162c2a3bbac505864b7474cb2cff995d46d038 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 10 Dec 2014 13:44:08 -0500 Subject: [PATCH] Ansible folks say SIGINT works.... doesn't seem to stop the playbook to me, but whatever --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index ef86cad201..8ec280a35f 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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)