Make service wait for another service before starting

scarabcoderPRO

5 months ago

I have one service that depends on another service (one direction relationship) to start up. I've tried using a bash command that waits for it to come online, and while that does work, it tends to time out the health check in new (PR) environments because there's a large difference in build and start times for the "parent" service. I can up the health check timeout to something like 10 minutes, but it means that if there's a startup issue due to a crash or something similar I won't know for that much longer.

Is there a way built into Railway to make it wait before deploying based on another service's healthcheck/uptime?

0 Replies

scarabcoderPRO

5 months ago

N/A


5 months ago

we unfortunately don't have a way to do this natively.

Please upvote and explain your usecase here -


Make service wait for another service before starting - Railway Help Station