ebrin
How to prevent users from seeing the Application failed to respond page?
So I have a uvicorn setup and whenever I restart / redeploy the service, it seems the Railway is waiting for the uvicorn to shutdown and during this time the webpage shows the Railway's "Application failed to respond" page (503 error). This usually takes under a minute, but I'd still like to avoid it if possible.
Here's the Deploy logs (from uvicorn):
INFO: Shutting down
INFO: websocket connection disconnect!
INFO: connection closed
INFO: Waiting for application shutdown.
INFO: Started server process [1]
INFO: Waiting for application startup.
INFO: Application startup complete.
The railway screen shows up until the "Application startup complete" log.
15 replies