How do I keep thread running in a Flask app?
I have a function that collects data from an api every 60 seconds. I want to be able to start and stop this function by making request to Python Flask app. The app is deployed on a VPS server, but what I noticed is that thread would just automatically stops after some time. If I send “start” request thread would start working again.
So, my questions are: