Skip to main content

Module schedule

Module schedule 

Source
Expand description

CronSchedule – validated cron expression newtype.

Wraps croner::Cron to guarantee that any CronSchedule value holds a syntactically valid cron expression. Construction is fallible; once built the value is safe to pass to tokio_cron_scheduler without further validation.

A schedule also carries a SchedulePolicy: what to do with missed occurrences, with overlapping runs, and the timezone the expression is evaluated in.

Structs§

CronSchedule
A validated cron expression.
SchedulePolicy
Catch-up, overlap and timezone policy of a schedule.

Enums§

CatchupPolicy
What a schedule does with the occurrences it missed while no server was firing it (downtime, a long deploy, a stalled ticker).
OverlapPolicy
What a schedule does when an occurrence comes while one of its runs is still active.