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
Since there is no way with run_in_executor and we don't want to use to_thread as suggested at python/cpython#78195 because it doesn't use a custom executor, we need to just populate the context ourselves. This of course won't work with process pool executor.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently we are calling https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.run_in_executor but we are not propagating the contextvars.
Describe the solution you'd like
Since there is no way with
run_in_executor
and we don't want to useto_thread
as suggested at python/cpython#78195 because it doesn't use a custom executor, we need to just populate the context ourselves. This of course won't work with process pool executor.The text was updated successfully, but these errors were encountered: