R
Railway2w ago
Nick

Make service wait for another service before starting

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?
3 Replies
Percy
Percy2w ago
Project ID: N/A
Nick
NickOP2w ago
N/A
Brody
Brody2w ago
we unfortunately don't have a way to do this natively. Please upvote and explain your usecase here - https://help.railway.app/feedback/service-dependencies-rollouts-6b418f05
Want results from more Discord servers?
Add your server