I'm running Django on an Ubuntu server with nginx and gunicorn. I'm trying to do some multiprocessing which is working on my local machine but hangs until the gunicorn worker times out on my server.
cpu_count = int(multiprocessing.cpu_count()) pool = Pool(processes = cpu_count) result = pool.map_async(apiSimulAvail, rate_ranges) result.wait() ...do some more stuff once all processes return
It hangs at
pool = Pool(processes = cpu_count). I don't get any errors, the gunicorn worker just times out and reboots.
Any indication as to why this is happening and/or how I can solve it is greatly appreciated. Thanks.