Closed manango closed 6 years ago
Ok because of https://github.com/taichino/croniter/pull/97
This just broke a whole lot of code for us and caused a fair share of production issues. Is there a way to disable this "feature"?
No, fix you requirement to 20 (croniter == 0.3.20
).
NO eta for having the time to fix it right now, maybe next week.
I have to detect the result of get_next
with the start_time
, if it is less than start_time
, I call get_next
again. @MichelEdkrantz
Thanks, we have frozen to 0.3.20 in the meantime. It would make more sense to only activate the new behaviour with a flag, like croniter.croniter('0,30 ', dt, round_backwards=True) that should be false by default in order not to break existing applications. This is a breaking change in a minor version upgrade, just saying.
Also, this seems to have nothing to do with rounding to nearest 5 minutes in #97. It affects all patterns like "4 ".
normally fixed by #103
In
0.3.20
version, thecroniter.get_next()
returns correct value.However, with
0.3.22
, thecroniter.get_next()
returns incorrect value. Calling get_next() at9:00:30
time with0,30 * * * *
cron returns9:00:00
: