gawel / aiocron

Crontabs for asyncio
MIT License
338 stars 20 forks source link

customize croniter kwargs in Cron constructor #33

Closed msladecek closed 1 year ago

msladecek commented 1 year ago

Summary

aiocron relies on croniter to interpret the scheduling spec by constructing a croniter instance internally on the Cron object.

croniter supports some additional features such as hashed expressions which are only usable when one passes additional arguments to the croniter constructor.

Currently aiocron provides no means of customizing the creation of it's internal croniter instance, so these features are not available to the users of aiocron.

In this PR, I add the option to specify additional croniter keyword arguments by passing them to the Cron constructor.