Cron Schedule Variance

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?
11 Replies
Percy
Percy4mo ago
Project ID: N/A
RyanKnack
RyanKnackOP4mo ago
NA
Brody
Brody4mo 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
RyanKnack
RyanKnackOP4mo ago
Actually just by looking at the deploy logs would suffice But thanks Brody. Seems like they have been running within 5 to 7 seconds of what I dictate it to be
Brody
Brody4mo ago
yep that would be normal at this time
RyanKnack
RyanKnackOP4mo 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 :)
Brody
Brody4mo ago
that would also be normal, crons should run but they dont guarantee minute accuracy
RyanKnack
RyanKnackOP4mo 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 Let's just say I haven't really been efficient at all with my in-code cronjobs.
Brody
Brody4mo 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
RyanKnack
RyanKnackOP4mo 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
Brody
Brody4mo ago
no problem!
Want results from more Discord servers?
Add your server