7p4
7p4

Reputation: 29

How to control multiple python scripts with respect to time and make the system failure proof

I need to run multiple Python scripts daily, which prepare and deliver critical data and stop the scripts after a predefined time. Then, run a different script (only one time) to achieve the generated outputs. The important part is that this should be repeated daily, and if a script causes failure, including the control script, then restart the failed script again.

What is the state of art way of doing this control? How can the system made to be failure proof? I can of course do it with sleeps and exception handling and to run subprocesses I could use popen. Can we say that this approach is good enough?

Upvotes: 0

Views: 27

Answers (0)

Related Questions