In a for
loop, it is easy to track progress by doing:
total_num = 1000
for num, url in enumerate(urls):
print '%s / %s' (num+1, total_num)
# do something
How would I keep track of progress with using Pool
?
# input data has 4M items
pool = Pool(parallel_workers)
pool.map(run_item, input_data)