(this is using Python 2.7)
I have found similar links but not about the exact same issue than what I am having. This program hangs on the map_async, and never finishes, I can see the Python process getting created but it never completes:
import multiprocessing
def main():
PROCESSES = 4
print 'Creating pool with %d processes\n' % PROCESSES
pool = multiprocessing.Pool(PROCESSES)
r = pool.map_async(pow3, range(10))
r.wait()
def pow3(x):
try:
return x**3
except:
print('%s: %s' % (x, traceback.format_exc()))
if __name__ == '__main__':
main()