You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In asgi.py I can see the call to aclose();
await subscriptions[operation_id].aclose()
So how do I catch this in my subscription source? This should generate a GeneratorExit exception. I can not figure out a way to catch that exception in my subscription source which would then signal my code to exit.
The text was updated successfully, but these errors were encountered:
I don't know if this is possible with how GraphQL's query executor is structured, as disconnection goes down and just removes async generators without telling them their job is done.
Do you mind sharing your usecase for explicit cleanup in source on disconnection?
In asgi.py I can see the call to aclose();
await subscriptions[operation_id].aclose()
So how do I catch this in my subscription source? This should generate a GeneratorExit exception. I can not figure out a way to catch that exception in my subscription source which would then signal my code to exit.
The text was updated successfully, but these errors were encountered: