Skip to content

Conversation

@iatkinson
Copy link
Contributor

@iatkinson iatkinson commented Sep 29, 2025

Rationale for this change

ExecutorFactor can be left in an invalid state, which causes new submit calls to hang indefinitely in multiprocessing.

Closes #2545

This PR detects when the executor is used in a new process and creates a new instance

Are these changes tested?

Yes, new tests added to test_concurrent.py

Are there any user-facing changes?

No

@Fokko Fokko merged commit fd5be9e into apache:main Oct 5, 2025
10 checks passed
@Fokko
Copy link
Contributor

Fokko commented Oct 5, 2025

Thanks @iatkinson for working on this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ExecutorFactory is not compatible with fork multiprocessing

2 participants