I wrote a twitter scraper that I want to run indefinitely on my server in Python/Django. How can I make sure it always runs? I understand I can make a cronjob to start it up.
However, sometimes the script errors because twitter's connection fails. How can I make something that checks if this script is still running every minute or so?
I could make a cronjob that start again every minute, but I wouldn't want that as if it is still running properly it doesn't need to be restarted.