Skip to main content

Module fire_times

Module fire_times 

Source
Expand description

Fire times of a DAG’s time trigger, with schedr’s daylight-saving rules.

A cron expression is matched against wall-clock times in its time zone (croner parses and matches it); each match becomes real moments by these rules (see archive/PROJECT.md, Native API: daylight-saving changes):

  • Gap (spring forward, the time doesn’t exist): the fire time moves to the first moment after the gap; several matches in one gap collapse into that one fire time.
  • Overlap (fall back, the time happens twice): with a fixed hour field (30 2 * * *) it fires once, at the first occurrence; with a wildcard, step, range or list in the hour field (*/15 * * * *) it fires at each occurrence.

Every is measured in real time from its anchor (start, or the Unix epoch without one); Once has one fire time; no trigger has none.

Structs§

CronTimes
A parsed cron trigger.

Enums§

FireTimes
The fire times of a time trigger.
FireTimesError
A time trigger that can’t be evaluated.