Message398143
I love `concurrent.futures`, and I'd like to use it wherever I can. There's a feature in `multiprocessing.Pool` that I wish would also be available in `ProcessPoolExecutor`: The `maxtasksperchild` argument.
Documentation: "maxtasksperchild is the number of tasks a worker process can complete before it will exit and be replaced with a fresh worker process, to enable unused resources to be freed. The default maxtasksperchild is None, which means worker processes will live as long as the pool."
I want to be able to set it to 1, so each process will only execute one task and then be replaced with a fresh process. |
|
Date |
User |
Action |
Args |
2021-07-24 12:14:41 | cool-RR | set | recipients:
+ cool-RR, pitrou |
2021-07-24 12:14:41 | cool-RR | set | messageid: <1627128881.56.0.324294431588.issue44733@roundup.psfhosted.org> |
2021-07-24 12:14:41 | cool-RR | link | issue44733 messages |
2021-07-24 12:14:41 | cool-RR | create | |
|