R
Railway13mo ago
lasse

Redeploy

Hey there, is there away to start a redploy using the Railway API
37 Replies
Percy
Percy13mo ago
Project ID: N/A
lasse
lasse13mo ago
n/a
Brody
Brody13mo ago
yes there is, what's the usecase?
lasse
lasse13mo ago
So the case is i want to redeploy it every 24 hours, if that is allowed
Brody
Brody13mo ago
okay but what's the reason you want to do that
lasse
lasse13mo ago
Better performance for my discord bot.
fedev
fedev13mo ago
Railway has a built in cron service redeployer Service => settings => chron schedule
0 0 * * *
0 0 * * *
this should redeploy your service every day at 12AM
lasse
lasse13mo ago
Thank you!
Brody
Brody13mo ago
that will not do what they want it won't restart because something will already be running
fedev
fedev13mo ago
But i tried it and it re deployed my service even if it was already running
Brody
Brody13mo ago
did the status say complete?
fedev
fedev13mo ago
It was active and then it removed the previous deployment
Brody
Brody13mo ago
the changelog said they have changed that behaviour to wait for previous deployments to complete
fedev
fedev13mo ago
What do you mean for complete? The is a complete state? Isn't there removed, failed, active, building and initializing ?
Brody
Brody13mo ago
you missed deploying and complete railways cron scheduler will skip a schedule if there is already a deployment in the active state, at least according to their changelog prom the previous week
Want results from more Discord servers?
Add your server