soravux / scoop

SCOOP (Scalable COncurrent Operations in Python)
https://github.com/soravux/scoop
GNU Lesser General Public License v3.0
634 stars 87 forks source link

max tasks per child #58

Closed gduffley closed 7 years ago

gduffley commented 7 years ago

First off, if this isn't an appropriate place to ask a question, just let me know and feel free to delete this issue. I could't find discussion forum anywhere.

Using pythons multiprocessing Pool class, you can specify max tasks per child to create a clean environment for each run of the function. Is there a way to do this in scoop using futures.map?

Thanks!

soravux commented 7 years ago

Don't worry, it's the right place for this kind of questions.

There is currently no way to simulate the effect of the maxtasksperchild argument from multiprocessing's Pool. Pull requests for this matter are welcome, tough.