a year ago
Hi Railway team,
My cron function, scheduled to run exactly on the hour, is consistently executing ~2 minutes late (e.g. runs at 11:02 instead of 11:00). This timing issue is critical for my systems.
I have a launch in 4 days and need to explore options to ensure precise execution. Please advise on possible causes or solutions.
Thanks in advance!
2 Replies
a year ago
Hey there, unfortunately we have a slight jitter on our crons to manage load across the fleet
When you need absolute time precision. Railway does not guarantee execution times to the minute as they can vary by a few minutes.
https://docs.railway.com/reference/cron-jobs#when-not-to-use-railways-cron-jobs
For something like this that is really time sensitive, we recommend using something like node-cron and always having a running container
Status changed to Awaiting User Response Railway • 11 months ago
Status changed to Solved chandrika • 11 months ago