I want to create some workflows, and if they happen due to an exception, I would like them to revive. Other than the is_alive method in the multiprocessing module, I cannot find a way to do this.
This will require me to repeat all running processes (after sleep) and check if they are alive. This is essentially a busy cycle, I was wondering if there is a better solution that will awaken my program if any of my work processes crashed. As soon as it wakes up, I would like to catch an exception that crashed my program and started another process.
source share