mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 13:43:35 +00:00
Fix run-batch to handle 0 items (#363)
This commit is contained in:
@ -10180,6 +10180,8 @@ gam create project
|
||||
|
||||
def run_batch(items):
|
||||
from multiprocessing import Pool
|
||||
if not items:
|
||||
return
|
||||
num_worker_threads = min(len(items), GC_Values[GC_NUM_THREADS])
|
||||
pool = Pool(processes=num_worker_threads)
|
||||
sys.stderr.write(u'Using %s processes...\n' % num_worker_threads)
|
||||
|
Reference in New Issue
Block a user