From c855ce95aa99de6519f727f5999537190f544a37 Mon Sep 17 00:00:00 2001 From: beeankha Date: Wed, 23 Sep 2020 15:45:11 -0400 Subject: [PATCH] Fix JT timeout notification bug --- awx/main/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 80013000a6..0e03055055 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1506,6 +1506,8 @@ class BaseTask(object): self.instance.job_explanation = "Job terminated due to timeout" status = 'failed' extra_update_fields['job_explanation'] = self.instance.job_explanation + # ensure failure notification sends even if playbook_on_stats event is not triggered + handle_success_and_failure_notifications.apply_async([self.instance.job.id]) except InvalidVirtualenvError as e: extra_update_fields['job_explanation'] = e.message