Closed yitian-reevo closed 5 years ago
Uhm, i need to investigate but your cron line seems invalid for me, so at least its normal that it wont work.
*/0 mean each 0 minutes, division by zero !
As a programmer, I totally understand this cron line is invalid, and stupid! But we cannot control that somebody attempts to do this to let their jobs run continually.
Thanks for working on this!
Ok, no problemo, as i said i ll look how to make croniter not crash. I wanted just to be clear on the invalidness of the expression. thx for reporting !
Fabulous! Thanks.
Better later than never ^^ :).
Hi guys.
Accidentally found an issue when using
is_valid
func with parameter '/0 *', the expect return is False, while somehow the program crashed.I actually located where the problem is, it's in croniter.py Line 499.
m.group(4) or 1
failed to return1
whenm.group(4) == '0'
, which then further caused variablestep
became 0, then it crashed.Could you please fix this?