I implemented pool.map
of multiprocessing
for a long list of independent and very expensive operations as described in my previous question Distribute many independent, expensive operations over multiple cores in python.
Still even with multiple cores, the work can take several hours. I would like to provide some simple visual cue of the operation's progress. To experiment, I tried printing the ID number of each item in the list from within the mapped function but 1) in an IDE it does not show up until all operations have completed entirely (less problematic), and 2) the operations are not completed in order (more problematic).
What's the best way of going about this?