I have a python script that run for few hours to process each record. Also, at the same time, I want to run the same script but with other arguments for other purpose.
Sometime an exception is raised and cause the script stop. Sometime the OS got restart.
So I would like to have something at the OS level to check. Such that if the script is stop, restart the script.
What is the best approach to solve this problem?