Skip to content

Parallel Processing with Pool #534

Discussion options

You must be logged in to vote

Hi @sencer4898
We have also observed some odd behavior depending which type of multiprocessing function we used. (In particular, combining ThreadPools and regular Pools lead to odd behavior.)
The one setup that worked reliably on all our machines thus far was to use map_async
You can see two examples here:

with Pool(self.num_processes) as pool:

and here:
pool.map_async(self._run_exp, args_list, callback=self._log_result)

Please let me know if this approach works for you and share your updated code snippet.
Thank you,
Oskar

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sencer4898
Comment options

@sencer4898
Comment options

@ourownstory
Comment options

Answer selected by ourownstory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants