Startup containers
scarabcoder
PROOP

a year ago

I haven't tested this yet, but does Railway work with run-once type services, something that just boots up, runs, then closes down? It would not need to run on a schedule, just needs to run every time we do a GH push or create a new environment.

4 Replies

scarabcoder
PROOP

a year ago

N/A


a year ago

yes! just have your app quit after it completes and set the service to never restart (or restart on error, if desired. test to ensure this works how you intend though)


scarabcoder
PROOP

a year ago

Cool, thanks!


mattcaruso
HOBBY

a year ago

What would be the best way to trigger this kind of container to run? Ideally, one of my other services could ask for it. My use case is an infrequently-used, long-running task where it doesn't make sense to run within one of my other services nor does it make sense to keep the service for this task running all the time.


Loading...