From 6a2925c54602f0ac33f2fd3262f2c65ebcd70791 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Sun, 19 Feb 2017 07:53:42 -0800 Subject: [PATCH] pool.join required to wait for processes to finish (#436) --- src/gam.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gam.py b/src/gam.py index 29042772..d19f6682 100755 --- a/src/gam.py +++ b/src/gam.py @@ -10016,6 +10016,7 @@ def run_batch(items): if item[0] == u'commit-batch': sys.stderr.write(u'commit-batch - waiting for running processes to finish before proceeding...') pool.close() + pool.join() pool = Pool(num_worker_threads, init_gam_worker) sys.stderr.write(u'done with commit-batch\n') continue