From 4935385572ee16ee6c1c25ae128aef8547fb0edf Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 17 Oct 2022 06:08:42 -0700 Subject: [PATCH] Pass lock (l) not one (1) to initargs (#1567) --- src/gam/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 9b94a4d8..96e93eb5 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -11244,7 +11244,7 @@ def run_batch(items): ) pool.close() pool.join() - pool = mp_pool(num_worker_threads, init_gam_worker, maxtasksperchild=200, initargs=(1,)) + pool = mp_pool(num_worker_threads, init_gam_worker, maxtasksperchild=200, initargs=(l,)) sys.stderr.write( 'commit-batch - running processes finished, proceeding\n') continue