Skip to content
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

Fix multiprocessing context for ProcessPoolExecutor #398

Merged
merged 2 commits into from
Feb 11, 2022
Merged

Conversation

joelvbernier
Copy link
Member

We need to force the multiprocessing context to 'fork' on platforms (not Windows) where it is available.

We need to force the multiprocessing context to 'fork' on platforms (not Windows) where it is available.
@joelvbernier joelvbernier requested a review from psavery February 11, 2022 18:41
@joelvbernier joelvbernier self-assigned this Feb 11, 2022
@joelvbernier joelvbernier added cleanup high priority move these to the top of the stack labels Feb 11, 2022
ProcessPoolExecutor now gets mp_context from hexrd.constants.  Fixes weird spawn-related bugs on Mac and Linux.
@joelvbernier joelvbernier changed the title Update constants.py Fix multiprocessing context for ProcessPoolExecutor Feb 11, 2022
@joelvbernier joelvbernier linked an issue Feb 11, 2022 that may be closed by this pull request
@joelvbernier
Copy link
Member Author

Fixes #399.

@joelvbernier joelvbernier merged commit 5474599 into master Feb 11, 2022
@psavery psavery deleted the mp-context branch February 11, 2022 19:29
@joelvbernier
Copy link
Member Author

I agree we may have to revisit this later -- but this solves my immediate problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup high priority move these to the top of the stack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strange bug using ProcessPoolExecutor on Mac an Linux
1 participant