Closed Dr-Horv closed 8 years ago
"SLEEPS AFTER 30 MINS OF INACTIVITY" Source: https://www.heroku.com/pricing
Is this a problem? what do you mean with state is lost?
Application "sleeps" which makes it lose its internal state. - Is codes generated, and so on.
This actually happened during the last meeting
hmm, yea that is a problem, can wee poke it every 10 minutes? or have some process that always work? or premium?
Yeah, we were planning on testing the health-check endpoint tomorrow :)
Ok, after some testing, the app actually seems to sleep after 30 min and all state is lost.
We were able to keep it alive using the following script:
while true; do
curl -s https://$SERVERNAME/health-check
sleep 60
done;
Adding a note to the readme file
When no web requests are made to heroku the instances "sleeps" and the state is lost and new code have to be generated.