vendredi 23 octobre 2015

Main script should start, stop and observe 3 subscripts

I have 3 Sub-Scripts and 1 Main Script

These have to run all ever and at the same time, if one of them has an error, the script should get restarted by the main script.

Those scripts are sharing all the same config file, which is just a .py file. And also some functions, which are now in a helper.py

Currently I started them as a subprocess but there exists also this multiprocess and thread things. And I'm just wondering if there is a better / cleaner way of doing this? Cause I'm really a Python beginner and it seem a little bit messy to me.

I hope it's not a too strange question =)

Aucun commentaire:

Enregistrer un commentaire