Cron Schedule Variance

2 years ago

Quick question:

I have a cronjob I used Railway Cron for that runs every 15 minutes.

Generally speaking, I know there is a variance when it runs within the 15 minutes. May I know HOW MUCH variance is there and if it is BEFORE or AFTER the stipulated 15 minutes?

12 Replies

2 years ago

NA


2 years ago

that depends on the load of the scheduler running the workflow and how many workflows are running at your set time, best to simply check the start time for a bunch of your cron deployments so you can gather the variance numbers


2 years ago

Actually just by looking at the deploy logs would suffice


2 years ago

But thanks Brody. Seems like they have been running within 5 to 7 seconds of what I dictate it to be


2 years ago

yep that would be normal at this time


2 years ago

I'm looking at the more popular timestamp which is 00z and it appears to be offset by about a minute. Generally it is fine for my use case :)


2 years ago

that would also be normal, crons should run but they dont guarantee minute accuracy


2 years ago

The more accurate would be an in-code scheduler isn't it. I'm currently doing this but I'm trying to eliminate idle resources, that's why I'm slowly switching some of my smaller services to railway cronjobs


2 years ago

Let's just say I haven't really been efficient at all with my in-code cronjobs.


2 years ago

yeah ms level accuracy would be done with an in code scheduler but of coruse that comes with idle resources like you said, so there are trade offs to either options


2 years ago

Anyways to answer the question seems like it can be anywhere around 5 seconds to 1 minute after the stipulated time.

Keyword: AFTER. So it always happens after

I'll mark this as solved now. Thank you


2 years ago

no problem!


Loading...