From 4509f402a8a645c0ef6d219678d07b019bfb104c Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Thu, 15 Dec 2016 16:31:39 -0500 Subject: [PATCH] send notification when recifiying celery jobs --- awx/main/scheduler/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/scheduler/__init__.py b/awx/main/scheduler/__init__.py index efba3fdb75..e92eb429e1 100644 --- a/awx/main/scheduler/__init__.py +++ b/awx/main/scheduler/__init__.py @@ -346,6 +346,7 @@ class TaskManager(): 'Celery, so it has been marked as failed.', )) task_obj.save() + _send_notification_templates(task_obj, 'failed') connection.on_commit(lambda: task_obj.websocket_emit_status('failed')) logger.error("Task %s appears orphaned... marking as failed" % task)