From f62b9ff2c0c2773892cf9ce4da41080abce414cf Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 10 Dec 2014 10:34:06 -0500 Subject: [PATCH] Switch to using SIGTERM for canceling a job --- 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 8ec280a35f..ef86cad201 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.SIGINT) + os.kill(child.pid, signal.SIGTERM) time.sleep(3) # The following line causes orphaned ansible processes # child.terminate(canceled)