HangfireIO / Cronos

A fully-featured .NET library for working with Cron expressions. Built with time zones in mind and intuitively handles daylight saving time transitions
MIT License
974 stars 114 forks source link

*/15 not firing correctly #68

Closed jeremeguenther closed 3 months ago

jeremeguenther commented 3 months ago

* */15 * ? * MON,TUE,WED,THU,FRI,SAT,SUN

I'm having an issue with that crontab. For some reason it is firing every 15 minutes correctly, but then there is a second firing happening 5 minutes after each valid event. I have been unable to find a mistake in my code so far that could be causing this, has anyone else seen a similar issue?

jeremeguenther commented 3 months ago

I figured out the issue. There's a 1 minute time span difference in the GetNextOccurance method, so if I call it a second time within a minute it will return the same next value.