I searched that it mostly sleeps on 2-3 days of inactivity also a week too before but why I have to rerun or reactivate it after 30 minutes or a day etc.?
Please take a moment to search the forum and documentation before posting a new topic.
If you’re creating a debugging post, please include the following info:
Are you running your app locally or is it deployed? Deployed
If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform? Community cloud
b. Share the link to the public deployed app. meldrx.streamlit.app, docunexus.streamlit.app, azure-microsoft-docunexus.streamlit.app
Share the link to your app’s public GitHub repository (including a requirements file). Private repository with +300 packages
Share the full text of the error message (not a screenshot). Zzzz
This app has gone to sleep due to inactivity. Would you like to wake it back up?
@SiddhantSadangi to confirm the inactivity threshold has changed from previously being 7 days to 12 hours?
I have embedded streamlit apps on a public facing site and going inactive within 12 hours (and the inability to wake up from the embed) makes streamlit effectively unusable for this use case. Does streamlit suggest any workaround?
Confirmed. The inactivity threshold had been reduced from 7 days to 1/3 (weekday/weekend) quite a while back already. It has now been reduced to 12 hours.
I’d recommend scheduling a task that pushes an empty commit every 10 hours to the repo hosting the app source.
That being said, the team is closely monitoring community feedback around this change
Same here. A paid version of the Streamlit Community Cloud would be highly appreciated for relatively small projects that have professional/ educational applications.
Hi all, thanks for posting here. If you are reading and your project is negatively impacted, please posting as well. This is very helpful.
Since our user base keeps growing exponentially (yay!) we need to constantly tweak different configuration parameters to keep our costs reasonable. So the more data we have on this the better.
Is there a pro-version not using snowflakes?
There’s no separate pro-version. Snowflake is what we offer here.
snowflake version seems limited I cannot use GH in it?
You can definitely use Github with Snowflake! Right now the setup process is more involved than in Community Cloud, but it’s just a one-time cost. And the Git team is working to make things a lot simpler as well.
Have you had success with this strategy? I have tried this (committing both to the repo and to the actual .py file) and it does not seem to wake an app that is hibernating.
Hey @Vijay1, this method will not awaken an app that is already sleeping, but only reset the timer for an active app.
You will first need to get the app back up manually
Yes, I got it. Once the app is running, we can reset the timer evry 10 or 12 hrs to keep it active and prevent it from sleeping. Is that correct?
Can you plz provide script?
Make sure you have the .github/workflows directory in your repository
The workflow will automatically run when you push this file to your repository
The workflow will create empty commits every 10 hours to keep your repository active
Note: Make sure your repository has the necessary permissions to push commits. If you’re using a private repository, you might need to configure repository secrets or use a personal access token for authentication.
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.