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

add support for concurrent.futures #90

Open
mmckerns opened this issue Jul 13, 2016 · 11 comments
Open

add support for concurrent.futures #90

mmckerns opened this issue Jul 13, 2016 · 11 comments

Comments

@mmckerns
Copy link
Member

the pathos interface is nearly a match to concurrent.futures, and it seems to be preferred over multiprocessing as the standard.

@PawelTroka
Copy link

@mmckerns Any updates on this?

@mmckerns
Copy link
Member Author

No, I haven't had time for it. In theory, it should be an easy PR -- however, I'm short on time at the moment.

@evanbiederstedt
Copy link

+1

This would be very very useful

@colibri17
Copy link

+1 Agree

@h3jia
Copy link

h3jia commented Jun 26, 2020

+1

@matthewyangcs
Copy link

+1 please!

@ddelange
Copy link
Contributor

fwiw, in case you're in the asyncio world and you're in need of dill, this gist might be useful to you (particularly the AioPool part):
https://gist.github.com/ddelange/643fbb791b398783c04d1ceb90102163

See also the PR I liked above in 2021. It's not a drop in replacement of ProcessPoolExecutor, but the gist mostly gets the job done for me.

@mmckerns
Copy link
Member Author

I just had this come up in a funded project yesterday, so this may get prioritized...

@ddelange
Copy link
Contributor

@mmckerns that's cool to hear! the unresolved comment might be relevant for the implementation

@rachtsingh
Copy link

One important difference between multiprocessing.Pool and concurrent.futures.ProcessPoolExecutor is that the former hangs if a worker process is killed. Does the pathos/multiprocess project have a plan to handle that behavior (or is it already handled in multiprocess.Pool)?

As an alternative for those looking, it looks like the joblib/loky project does try to handle this? I'll give it a shot.

@ddelange
Copy link
Contributor

I think that's #265

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

No branches or pull requests

8 participants