Share a Multiprocessing Pool With Workers

You can share a multiprocessing.pool.Pool process pool with child workers indirectly using a multiprocessing.Manager and proxy objects. Using a Manager provides a workaround for the inability to directly share a process pool because it cannot be pickled. This allows you to issue tasks to the pool from tasks executed by the pool, e.g. issue tasks […]
 •  0 comments  •  flag
Share on Twitter
Published on August 04, 2022 12:00
No comments have been added yet.