Automatic project redeploys?
I have a project running that seems to have a memory leak which I cannot track down nor fix. Is there any way to have a project redeploy every few days or so automatically?
4 Replies
Project ID:
7dd5f953-95e3-4530-8fdb-7f4311228dd4
7dd5f953-95e3-4530-8fdb-7f4311228dd4
seen this question a few times, the answer was always have your app crash itself after x amount of time
the other option would be call the public api and use the
deploymentRestart
mutation, for the id
input it requires use the environment variable RAILWAY_DEPLOYMENT_ID
do either of those options in an in-code cron jobMemory leak as a feature
There's also https://blog.railway.app/p/cron-jobs-django-github-actions if you want the cronjob to live outside your code. The CLI doesn't support a "restart" though (it probably should?)