Periodic start-stop service
smartisanyyh
HOBBYOP
2 years ago
I want to Periodic start-stop service at a certain time,for example ,I have an application, it only needs to run during the day, and it can be closed at night to save resources, so I want to close the service at 8 o'clock every night and open it at 6 o'clock in the morning. Is there a way to achieve this operation now
2 Replies
smartisanyyh
HOBBYOP
2 years ago
and I do not want open app sleeping,because there are relatively few users at present, the access interval may exceed 10 minutes. I don't want customers to encounter cold boot every time.
2 years ago
Railway does not offer this automatic functionality natively, few options here -
- Manually remove the active deployment, and then redeploy when you want it back online.
- Write code that calls Railway's API to do the above option automatically.
- Use app sleeping and optimise your app for cold boots.