Skip to content

Comments

wave: run graphql asynchronously on flask server#1

Merged
lukaspiatkowski merged 1 commit intowave-releasefrom
lukas/Votyak
Sep 14, 2023
Merged

wave: run graphql asynchronously on flask server#1
lukaspiatkowski merged 1 commit intowave-releasefrom
lukas/Votyak

Conversation

@lukaspiatkowski
Copy link
Member

In GraphQLView.dispatch_request pass run_sync=False to run_http_query and, if necessary, run the result on async loop.

There is an open PR upstream to handle async natively: graphql-python#110

In GraphQLView.dispatch_request pass run_sync=False to run_http_query and,
if necessary, run the result on async loop.

There is an open PR upstream to handle async natively:
graphql-python#110
@lukaspiatkowski
Copy link
Member Author

This is basically to replace the hacky override we have right now in money-srv with a forked graphql-server, see the hacky code here: https://github.com/wavemm/monorepo/blob/cdf17e944881d6c3cb7110b13e29e741c13af1e9/money-srv/src/interface/graphql/execution.py#L614-L651

@lukaspiatkowski lukaspiatkowski restored the lukas/Votyak branch September 14, 2023 10:40
@cqfd
Copy link

cqfd commented Sep 14, 2023

Hmm, yeah, the loop part is interesting—I'm curious too if it's necessary for correctness.

/approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants