6 months ago
I have a small search app that users can access but often the Streamlit app user instance will reset while in use most likely due to inactivity for 30-60 seconds or so. Can the user instance alive time be adjusted?
5 Replies
6 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
6 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 6 months ago
6 months ago
By any chance, have you made your deployed service serverless?
That setting should be turned off to keep the connection alive and not let your service sleep after some inactivity
Attachments
6 months ago
Serverless is not enabled; again, the problem is related to individual user sessions and not the app as a whole.
Attachments
6 months ago
Found the solution by adding a couple commands at start _ Streamlit run my_app.py --server.port $PORT --server.websocketPingInterval=25 --server.enableWebsocketCompression=false
helpmeguys
Found the solution by adding a couple commands at start _ Streamlit run my_app.py --server.port $PORT --server.websocketPingInterval=25 --server.enableWebsocketCompression=false
6 months ago
Great! Congrats on clearing the issue 
