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
support IOLoop.close() when called after asyncio.run #3292
Comments
My assumption has been that you wouldn't mix IOLoop and asyncio event loop control methods in the same app: you could use IOLoop.run_sync instead of asyncio.run, but in that case you'd rely on the asyncio lifecycle instead of Tornado's. Asyncio doesn't have an |
I've been using the following function to run the
distributed
test suite:Which has worked great with non-overlapping calls to
IOLoop.current()
, however I recently introduced an overlapping call, which results in a KeyError:https://github.com/dask/distributed/actions/runs/5475797836/jobs/9972404903#step:19:2420
@bdarnell could you catch the KeyError so that I can run
AbstractEventLoop.close()
thenIOLoop.close()
?The text was updated successfully, but these errors were encountered: