Cron did not run at midnigth
a1ds19
HOBBYOP
2 years ago
I have a service with Node.js and Nest.js. If I leave the cron to run every minute, for example, it works, but if I configure the cron to run every day at midnight, it does not work when it's deployed, works locally.
6 Replies
a1ds19
HOBBYOP
2 years ago
Yes, it is.
brody
EMPLOYEE
2 years ago
Are you aware that the services run in the UTC time zone as standard practice for cloud services?
Status changed to Solved Railway • over 1 year ago
a1ds19
HOBBYOP
2 years ago
No, I was not aware of that
brody
EMPLOYEE
2 years ago
Your midnight is not likely to be UTC midnight, so please account for that when setting your CRON expression.
a1ds19
HOBBYOP
2 years ago
Yes, thank you!