Is there any way to find out , which worker process among the Pool has executed a specific job .
For example,
def start_exe():
#execute some bunch of statements
if __name__ == '__main__':
p = Pool(5)
result = p.apply.async(start_exe)
print result.get()
I don’t see any API for that, but you can embed the name of the process that did the job in the result:
Example output: