-
-
Notifications
You must be signed in to change notification settings - Fork 32k
spawn asyncio subprocesses in a thread pool #81444
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
Comments
Subprocess starting can be a long blocking operation, see python-trio/trio#1109 for discussion |
From the Trio issue, this seems mostly a Windows issue where process creation is indeed very slow. So maybe this should be only done for Windows. |
I'm just realizing that when we use the ThreadedChildWatcher, there's a thread created for the process anyway, so maybe we could move the subprocess operation into that thread... (Then again on Windows we don't use child watchers.) |
@kumaraditya303 Flagging this as an FYI as you look at the work for #120804. After that work is completed, we can revisit. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: