I have an chat application that takes more than 30 minutes to run, i.e continuous messages will be sent from backend for more than 30 minutes. At the time period between 26-30 minutes into the running, the app re-runs without any inputs or interruptions, this problem only occurs if the app is deployed in streamlit cloud, the application runs fine in local.
Here is the link to my sample application that emulates what my application does,
once you run it for 30 minutes, it reruns.
Hi @Jayanth according to my understanding there may be case that if your app exceeds the streamlit cloud free space then it will automatically reruns when it becomes the out of space. Btw your application was not opening!!
Thanks for the replay @Guna_Sekhar_Venkata. Fixed the sample application. I don’t think my sample application consumes any memory, it just sends the same message over and over, at 25-30 min interval, the whole application is being re-run.
I also have this issue of app reruns every 30 minutes. It has been when someone else was using my streamlit cloud app so I’m not sure exactly how to recreate the behavior but I presume they left the tab open or something like that. I have automated logging of the session state and I sometimes see the unchanged log being repeated at 30 minute intervals.
Hey @rdlph .
I came to the conclusion that Streamlit Cloud doesn’t allow apps to run for more than 30 minutes. If you run it on EC2 or locally, where you have a dedicated instance, the app would work fine.
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.