1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

send notification when recifiying celery jobs

This commit is contained in:
Chris Meyers 2016-12-15 16:31:39 -05:00
parent ef1f77bf8e
commit 4509f402a8

View File

@ -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)