-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add additional executors, in addition to gevent (current) #15
Comments
Currently working on -- see pull request #19 |
Awesome work so far. I am going to take what you have done and see if I can get it working with sanic which uses asyncio with uvloop. |
Thanks. I haven't had much time to play w/ this the last couple weeks. I just pushed a new commit that has an almost working version of asyncio. About 6 transport server tests still don't pass. I might have to change the executor model around to get those to pass...haven't had a chance to dive into it. Also, in the asyncio transport server tests...I do use Sanic for the integration server. Code looks like this below
Now you shouldn't have to use the |
Also, if you haven't yet...you might want to read the comments on this current pull request #19. Looks like graphene will soon include support for subscriptions as an observable versus using the pubsub implementation I've done here. I still think there will need to be some code written around integrating w/ the various python concurrency frameworks...not sure if that will be done w/ extensions or included organically in graphene. I believe the observable will only take care of resolving the subscription...not the specific concurrency model or the subscription protocol implementation. We'll have to wait to see when graphene 2.0 is released. |
Awesome thanks. I put together something using the I did see the PR #19. And, I am definitely going to keep my eye on this area. |
Definitely...happy to help and would love to hear any feedback. Ideally, when I get some time, I'd still like to make the asyncio piece fully work. If you have any insight...I'm happy to hear it. Even with graphene eventually providing an observable based implementation...there still might be some interest in having a pubsub based alternative. In case it's not obvious from the above code... |
I just checked and it appears websocket subprotocol support is included in the master branch of Sanic now. See here. The tests give an example of how to use it with the websocket decorator. |
Abstract excector model similar to python graphql-python/graphql-core -- allowing different executors -- like threads, asyncio, etc.
The text was updated successfully, but these errors were encountered: