When multiprocessing over several files, if the system runs out of memory the subprocesses get killed but they don't report back to the parent, so it sits and waits for them to finish.
Not sure what the fix is here though
To sort this i will need some kind of callback in the subprocess. This callback would need a timeout threshold, which might be tricky given that I don't know how long each psf step will take
When multiprocessing over several files, if the system runs out of memory the subprocesses get killed but they don't report back to the parent, so it sits and waits for them to finish. Not sure what the fix is here though