Remove current deployment before building new one.
shreyasayyengar
HOBBYOP

a year ago

Project ID: d8c2d7d4-9cc2-4de3-a784-cb082a468bda

For context, I’m running a Java application (a Discord bot) on a Railway project. Railway builds from my GitHub repository. Due to how my bot shuts down and saves data, I would prefer if Railway could fully remove the current deployment before deploying the new one whenever commits are pushed to the branch Railway pulls from.

I suspect that, at times, both deployments run concurrently for a short period, causing issues because the new deployment pulls data that hasn’t been serialized by the old deployment.

Are there any solutions to this?

3 Replies

brody
EMPLOYEE

a year ago

I think you want RAILWAY_DEPLOYMENT_OVERLAP_SECONDS=0


shreyasayyengar
HOBBYOP

a year ago

would this be the appropriate place to configure that?

1258255649784074200


brody
EMPLOYEE

a year ago

yes


Loading...