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
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)
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.