I am using Flask to create a web service. I hope to restart it like every 30 minutes. Is that possible to do that and how can it be realized?
Meanwhile, I tried to use subprocess (popen) to start the flask web service, terminate it and start it again, but the server could not be shut down unless the whole program, where I call subprocess, is also down.
I would very appreciate if you could share your knowledge and experience regarding to this issue.