eladkal commented on issue #16107: URL: https://github.com/apache/airflow/issues/16107#issuecomment-871215170
> the cron expressions were like 5/10 * * * * *, notice it has one too many stars in it This is a valid cron exp. The 6th parameter means [year](http://www.nncron.ru/help/EN/working/cron-format.htm). However there is a bug in croniter it seems they use the 6th parameter wrong and it means **seconds**: https://github.com/taichino/croniter/issues/76 ``` >>> from croniter import croniter >>> croniter('5/10 * * * * *') <croniter.croniter.croniter object at 0x10b07c190> >>> croniter('5/10 * * * * 1') <croniter.croniter.croniter object at 0x10af92750> >>> croniter('5/10 * * * * 59') <croniter.croniter.croniter object at 0x10b07c190> >>> croniter('5/10 * * * * 60') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/croniter/croniter.py", line 154, in __init__ self.expanded, self.nth_weekday_of_month = self.expand(expr_format, hash_id=hash_id) File "/usr/local/lib/python3.7/site-packages/croniter/croniter.py", line 759, in expand return cls._expand(expr_format, hash_id=hash_id) File "/usr/local/lib/python3.7/site-packages/croniter/croniter.py", line 725, in _expand expr_format)) croniter.croniter.CroniterBadCronError: [5/10 * * * * 60] is not acceptable, out of range >>> croniter('5/10 * * * * 2000') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.7/site-packages/croniter/croniter.py", line 154, in __init__ self.expanded, self.nth_weekday_of_month = self.expand(expr_format, hash_id=hash_id) File "/usr/local/lib/python3.7/site-packages/croniter/croniter.py", line 759, in expand return cls._expand(expr_format, hash_id=hash_id) File "/usr/local/lib/python3.7/site-packages/croniter/croniter.py", line 725, in _expand expr_format)) croniter.croniter.CroniterBadCronError: [5/10 * * * * 2000] is not acceptable, out of range ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
