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)