Function cron delayed execution (runs 2 minutes late)
getmemori
PROOP

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!

Solved

2 Replies

getmemori
PROOP

a year ago

my service

Attachments


chandrika
EMPLOYEE

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 12 months ago


Status changed to Solved chandrika 12 months ago


Loading...