Hi everyone, I created a webapp to share my research, but I found the app enters “sleep mode” pretty frequently. I found that the app enters “sleep mode” when there are no activities during a week, but I found it actually enters “sleep mode” more frequently (every ~3 days). I really want to prevent it before I formally publish it to the research community, and I wonder if there is any way to prevent it.
Also, I wonder whether “inactivity” refers to traffics (someone connected to the app) or action (such as clicking a button), so that I can prepare to prevent it.
All apps without traffic for one weekday will go to sleep. The system checks apps for inactivity throughout each day as follows:
Tuesday through Friday: All apps without traffic for 24 hours (one day) will go to sleep.
Saturday through Monday: All apps without traffic for 72 hours (three days) will go to sleep.
Community Cloud hibernates apps to conserve resources and allow the best communal use of the platform. To keep your app awake, simply visit the app or commit to your app’s repository, even if it’s an empty commit!
My Streamlit app is deployed from connecting to a GitHub repo. If I make a change to the underlying code and then add, commit, push to the repo, will this “trigger” a refresh on the app, similar to a user visiting the app? I will likely have regular updates to the code, but I’m not sure how often a user will visit the app. I’m wondering if this process will also keep my app from entering “sleep mode.”
@SiddhantSadangi What is wrong with Streamlit Community Cloud? Apps are entering sleep-mode in less than 12 hours after last usage and less than 18 hours after last commit! I can provide the app link to a developer, if they wish to take a look.
UPDATE:
The sleep threshold has been reduced from 24h to 12h to keep the free platform accessible to all.
The docs will soon be updated to reflect these changes.
This really suck as the app will goes into sleep mode in less than a day. Commit from Github doesn’t help and there is active users using the app too. Not sure if this is a bug.
Any other servers offer better and more reliable deployment? Or streamlit offer any more permanent paid option to keep from sleeping?
I understand the need to adjust limits to keep the platform free for everyone, but it would be nice if existing apps could be grandfathered in when changes like these occur.
is there a cheap paid option just to keep my app awake? or does anyone have any suggestions on another hosting service that would keep my app live as I’ve embedded it on my website and would like it to be live for users on my site.
I think you can schedule a cron job for free which will visit app lets say every 10 hour and will keep it awake.
I used similar technique for one of my render project.