C
C#15mo ago
ceotrammell

❔ cron task, 1 task is delaying

RecurringJob.AddOrUpdate<ReportService>(x => x.SendTimeSpecificLocationSummary(), "0 0 7,11,15,20 ? * MON,TUE,WED,THU,FRI"); The above code is the task, today it ran at 7(6am CST), 11(10am CST) but when it got to 15, instead of running at 2pm CST, it ran at 3pm CST. Unsure why since the previous tasks work.
5 Replies
Playboi17
Playboi1715mo ago
https://crontab.guru use this to write CRON jobs
Crontab.guru - The cron schedule expression editor
An easy to use editor for crontab schedules.
Playboi17
Playboi1715mo ago
Sorry, wouldn’t be useful for you’re complex job. I’ll leave it cause it usually is helpful
Playboi17
Playboi1715mo ago
Actually, I think what you want is this - “0 0,7,11,15,20 * * 1-5“- https://crontab.guru/#0_0,7,11,15,20_*_*_1-5
Crontab.guru - The cron schedule expression editor
An easy to use editor for crontab schedules.
Playboi17
Playboi1715mo ago
“At minute 0 past hour 0, 7, 11, 15, and 20 on every day-of-week from Monday through Friday.”
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts