Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wave: run graphql asynchronously on flask server #1

Merged
merged 1 commit into from
Sep 14, 2023

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