seeking everyone's help on my workplace python processes
Context: -I have some python scripts running 24/7 in Powershell to process files that it detects in my folder), and then store them in the database (MySQL). -However sometimes the script would hang (eg. due to a new error encountered, work server crash, etc). -It caused some downtime as only my maintenance team can reset the script and they are not always around.
Trying to do: -Whenever it detects that the script hangs, it will auto restart the scripts.
Apologies that I do not have sample scripts as all of them are stored in my workplace. I would appreciate it if you can share with me the rough thought process or examples (on other sites) so I can 'take off' on my own. thank you :)