cron job question
cheemzboi
FREEOP

10 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

Closed$10 Bounty

5 Replies

jaredlunde
EMPLOYEE

10 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

10 months ago

ok but its still working idk how


jaredlunde
EMPLOYEE

10 months ago

It won't work if it ever redeploys


cheemzboi
FREEOP

10 months ago

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


jaredlunde
EMPLOYEE

10 months ago

yep


Welcome!

Sign in to your Railway account to join the conversation.

Loading...