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.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.