Pass lock (l) not one (1) to initargs (#1567)

This commit is contained in:
Ross Scroggs
2022-10-17 06:08:42 -07:00
committed by GitHub
parent 30069d3039
commit 4935385572

View File

@@ -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