Skip to content
Flask app sometimes shutdown
Profile icon
chimildic

I run flask project on 0.0.0.0 and it works correctly.
But after random period it shutdown. I need to visit project page and run again. This is limit of free plan or can I run project without shutdown in future?

You are viewing a single comment. View All
Profile icon
ch1ck3n

you can use uptime robot (https://uptimerobot.com/) or get hacker plan and it will have an "always on" feature. and yes it is a limitation of the free plan.

Profile icon
yuvix

@ch1ck3n
I also needed some flask app always running, so I used uptimerobot, but for some reason it looks like it still shuts itself down after some time. The thing is I'm not sure if the website does indeed go down, or perhaps only stops saving some data to a data.json file, in which I sometimes see huge gaps without any data - which currently I assume are website shutdowns. Any idea on that?

Profile icon
ch1ck3n

@yuvix
an error might have occured causing it to shut down

Profile icon
yuvix

@ch1ck3n
Nope, haven't seen any errors

Edit: It seems like the server wakes up on HTTP GET requests, while the HTTP(s) option in uptimerobot does HEAD requests, so I am now trying to change that into the keyword mode which does GET, I'll update if that works better.