cron job question
cheemzboi
FREEOP

3 months ago

so I have a cron job set up to run every 6 hrs on every run it stores old msg id in a json file and accesses the msg id when its ran again i want to know will the json be persistant or will it be removed when a execution is completed

$10 Bounty

5 Replies

jaredlunde
EMPLOYEE

3 months ago

You would have to add a volume to your service and store it in the mount path: https://docs.railway.com/guides/volumes


cheemzboi
FREEOP

3 months ago

ok but its still working idk how


jaredlunde
EMPLOYEE

3 months ago

It won't work if it ever redeploys


cheemzboi
FREEOP

3 months ago

okay i added volume and mount path now i shall save the file to that mount path?


jaredlunde
EMPLOYEE

3 months ago

yep


Loading...