Make service wait for another service before starting
scarabcoder
PROOP

a year 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?

2 Replies

scarabcoder
PROOP

a year ago

N/A


brody
EMPLOYEE

a year ago

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

Please upvote and explain your usecase here -


Loading...