Skip to content
Snippets Groups Projects
Commit 6fb33f01 authored by Werner Alfons Hilda Van Geit's avatar Werner Alfons Hilda Van Geit
Browse files

Make sure multiprocessing doesn't recycle slaves

parent 8f5843a4
No related branches found
No related tags found
No related merge requests found
......@@ -180,8 +180,8 @@ def prepare_emodel_dirs(
continu))
print('Parallelising preparation of emodel dirs')
pool = multiprocessing.Pool()
for emodel_dir_dict in pool.map(prepare_emodel_dir, arg_list):
pool = multiprocessing.Pool(maxtasksperchild=1)
for emodel_dir_dict in pool.map(prepare_emodel_dir, arg_list, chunksize=1):
for emodel, emodel_dir in emodel_dir_dict.iteritems():
emodel_dirs[emodel] = emodel_dir
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment