From 06dd5f1ebb55742b5f440db439844ee834989078 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Tue, 1 Oct 2019 11:09:40 +1300 Subject: [PATCH] Patch the execute method for now --- cylc/uiserver/websockets/tornado.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cylc/uiserver/websockets/tornado.py b/cylc/uiserver/websockets/tornado.py index 1ecc682c..448e7da3 100644 --- a/cylc/uiserver/websockets/tornado.py +++ b/cylc/uiserver/websockets/tornado.py @@ -98,6 +98,10 @@ async def on_connection_init(self, connection_context, op_id, payload): await self.send_error(connection_context, op_id, e, GQL_CONNECTION_ERROR) await connection_context.close(1011) + def execute(self, request_context, params): + params['context_value'] = request_context + return super().execute(request_context, params) + async def on_start(self, connection_context, op_id, params): execution_result = self.execute( connection_context.request_context, params)