I have 3 Sub-Scripts and 1 Main Script
image folder listener
python watchdoganother folder listener
python watchdogcouchDB listener
py-couchdb (feed)
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