I have a process with a lot of sub functions runing with Multiprocessing pool.imap_unordered. Sometimes, the process may stuck. I currently managed that with a timeout as follow :
futures_res = pool.imap_unordered(ImageRequestedTypeGenerationWrapper, InputData.copy())
out1, out2, = futures_res.next(timeout=timeout * 60)
I would like to identify which sub function with which parameters failed. Could you advise a method ?