Title: add initializer to concurrent.futures.ProcessPoolExecutor
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: nvdv
Priority: normal Keywords:

Created on 2017-08-08 14:02 by nvdv, last changed 2017-08-08 14:02 by nvdv.

Messages (1)
msg299921 - (view) Author: nvdv (nvdv) Date: 2017-08-08 14:02
Unfortunately concurrent.futures.ProcessPoolExecutor does not provide any means to interact with worker processes (like initializer function in multiprocessing.Pool constructor).

This problem has been mentioned at least once:

It's not hard to work around this issue by subclassing ProcessPoolExecutor and adding all necessary methods, but IMO solution can be more generic.
Date User Action Args
2017-08-08 14:02:29nvdvcreate