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!
4 Replies
a year ago
Hello,
I'm sorry but we cannot guarantee down to the minute execution times, if you need absolute precision an in-code CRON schedular would better fit your needs.
I am a fan of https://github.com/Hexagon/croner for this kind of use case, but also I really try to schedule my services so they don't need exact time to avoid Thundering Herds. Maybe you can bandaid it for now and find a way to splay your timing down the road? Maybe there's a better way to listen to a service heartbeat/lifecycle hook and react to a webhook or some other push based event handling mechanism instead?
a year ago
!s
Status changed to Solved brody • 12 months ago