Help with Streamlit App Wake-Up Timeout w/ App Sleeping
giloh7
HOBBYOP

2 years ago

Hi everyone,

I'm running a Python Streamlit app on Railway, and I'm encountering an issue when the app is waking up. Despite knowing there’s now a 10-second window to start accepting traffic, I still get an error during the wake-up process.

Is there a way to display a custom message like "The app is waking up, please wait..." to users while the app initializes?

Thanks in advance for your help!

Closed

8 Replies

giloh7
HOBBYOP

2 years ago

a6d3fb86-2717-4230-adcc-cd74af774086


2 years ago

does your app take longer than 10 seconds to start?


giloh7
HOBBYOP

2 years ago

No I don't think so - Because if I reload when I get the 502 Bad Gateway error - I directly arrive on the app


2 years ago

please provide a minimal reproducible example


giloh7
HOBBYOP

2 years ago

When the app is sleeping connect via the URL :

https://digginmix.up.railway.app/

=> 502 Bad Gateway

Refresh the page after some time

=> The app is loading

So I was wondering if there is a way to display a message like 'The app is waking up, please refresh in few second'


2 years ago

there's no way to display such a page


2 years ago

please provide a minimal reproducible example.. with code

sorry should have been more clear on the with code part


2 years ago

There is a way to display such a page, but it would involve heavy configuration + a separate app on your end. Likely not worth it


Welcome!

Sign in to your Railway account to join the conversation.

Loading...