[issue39458] Multiprocessing.Pool maxtasksperchild=1 doesn't work

2020-01-30 Thread Gabriel Tardif
Gabriel Tardif added the comment: Be aware that maxtasksperchild work together with the chunksize parameter of the map fonction when you use it and the default chunksize value is not 1, it's calculated according to your inputs, process and other parameters. -- resolution

[issue39458] Multiprocessing.Pool maxtasksperchild=1 doesn't work

2020-01-30 Thread Gabriel Tardif
Change by Gabriel Tardif : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39458> ___ ___ Python-bugs-list

[issue39458] Multiprocessing.Pool maxtasksperchild=1 doesn't work

2020-01-26 Thread Gabriel Tardif
New submission from Gabriel Tardif : Hello This bug is about the maxtasksperchild parameter in the Pool object constructor of the multiprocessing module. When you set processes = 1 in the Pool constructor maxtasksperchild value is double by two for unknow raison whatever the maxtaskperchild