From c4fb88c0d9c59030af0349886a91b88b8a290d31 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 28 Feb 2017 13:04:21 -0500 Subject: [PATCH] remove uneeded post commit wrapper * Since we changed the lower level method to always use post commit message emit --- awx/main/scheduler/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/scheduler/__init__.py b/awx/main/scheduler/__init__.py index a48ca3ad23..dc0a4c82e0 100644 --- a/awx/main/scheduler/__init__.py +++ b/awx/main/scheduler/__init__.py @@ -382,7 +382,7 @@ class TaskManager(): )) task_obj.save() _send_notification_templates(task_obj, 'failed') - connection.on_commit(lambda: task_obj.websocket_emit_status('failed')) + task_obj.websocket_emit_status('failed') logger.error("Task %s appears orphaned... marking as failed" % task)