mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-29 10:21:35 +00:00
Two fixes (#1226)
* Set maxtasksperchild to help avoid hangs especially on Windows * Fix function reference
This commit is contained in:
@@ -10959,7 +10959,7 @@ def run_batch(items):
|
||||
if not items:
|
||||
return
|
||||
num_worker_threads = min(len(items), GC_Values[GC_NUM_THREADS])
|
||||
pool = mp_pool(num_worker_threads, init_gam_worker)
|
||||
pool = mp_pool(num_worker_threads, init_gam_worker, maxtasksperchild=200)
|
||||
sys.stderr.write(f'Using {num_worker_threads} processes...\n')
|
||||
try:
|
||||
results = []
|
||||
|
||||
Reference in New Issue
Block a user