Immediately remove active deployments when a new one becomes active?
gigamesh
HOBBYOP

2 years ago

Some of my cron jobs aren't idempotent so I want to prevent this from happening:
Is it possible to immediately stop and replace the current deployment when a new one finishes deploying?

Solved

6 Replies

brody
EMPLOYEE

2 years ago

This thread has been escalated to the Railway team.

Status changed to Awaiting Railway Response brody over 1 year ago


gigamesh
HOBBYOP

2 years ago

Maybe this is a misunderstanding on my part. Is the cron guaranteed to only run once even if multiple instances are active/ready?


It's correct that deployments in Active state are the ones that are currently running. There will not be multiple active deployments at any time. Looking at your screenshot, the deployments there are in Ready state. Deployments in this state are the ones that will move to Active next, but they are not currently Active themselves. So in the screenshot, there are no Active deployments yet.


Status changed to Awaiting User Response Railway over 1 year ago


brody
EMPLOYEE

2 years ago

I flagged since I believe that there should not be 3 ready state deployments, that seems like a bug itself.


Status changed to Awaiting Railway Response Railway over 1 year ago


Thank you, @brody. I've passed on the feedback to the team that multiple deployments in ready state can be confusing.


Status changed to Awaiting User Response Railway over 1 year ago


gigamesh
HOBBYOP

2 years ago

Does multiple deployments in a ready state mean all of them will be triggered at the scheduled time? Or is this just a UI bug?

Please only answer if you are 100% certain, as I'm experiencing very strange behavior in my app after migrating to Railway:

https://help.railway.app/questions/rogue-server-need-help-asap-5f76a343


Status changed to Awaiting Railway Response Railway over 1 year ago


The behavior was caused by an issue on the platform on July 16, where some jobs kept running past their removal date. All jobs have been removed now. Jobs will only run at the scheduled time when using native cron jobs.


Status changed to Awaiting User Response Railway over 1 year ago


Railway
BOT

2 years ago

This thread has been marked as solved automatically due to a lack of recent activity. Please open a new thread if you require further assistance. Thank you!

Status changed to Solved Railway over 1 year ago


Loading...