Pebble: start processing results right away.
This commit is contained in:
parent
6bee81b711
commit
bbe575d07b
|
@ -581,7 +581,6 @@ def execute_parallel_ProcessPool(archivedir, max_retry, timeout, max_workers, ex
|
||||||
future = pool.map(partial(update_extension, archivedir, forums)
|
future = pool.map(partial(update_extension, archivedir, forums)
|
||||||
,ext_ids
|
,ext_ids
|
||||||
,timeout=timeout)
|
,timeout=timeout)
|
||||||
# wait for pool is finished before processing results.
|
|
||||||
iterator = future.result()
|
iterator = future.result()
|
||||||
ext_timeouts=[]
|
ext_timeouts=[]
|
||||||
for ext_id in ext_ids:
|
for ext_id in ext_ids:
|
||||||
|
|
Loading…
Reference in New Issue