Python multiprocessing application is getting stuck in docker container

Two approaches:

  1. try concurrent.futures process executor

Different libraries handle cases like these differently. Might fail more gracefully under your specific circumstances.

  1. psutils and manual memory allocation logging

If you are building this into a production process, this is a must given errors you’ve encountered so far.

Leave a Comment