Skip to content

Commit

Permalink
Patch the execute method for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno P. Kinoshita committed Sep 30, 2019
1 parent b520ef2 commit 06dd5f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cylc/uiserver/websockets/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 06dd5f1

Please sign in to comment.