Expand description
When a job runs: its trigger as a sequence of slots, ms epoch (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.1 “Triggers”).
A cron trigger is read in its IANA time zone. The cron crate evaluates
in one zone only and skips a local time that doesn’t exist or exists
twice, so the expression is evaluated here against local wall-clock time
(carried as a UTC value with no offset), and each local time is turned
into an instant with the zone’s rules:
- in a daylight-saving gap (02:30 on a spring-forward night) the slot fires once, at the first valid time after the gap; several slots in one gap are that one fire;
- in an overlap (01:30 on a fall-back night) it fires once, at the first of the two.
Every slot is strictly later than the one before, so a scheduler that asks for the slot after the last one never fires a time twice.
Enums§
- JobSchedule
- A job’s trigger, ready to answer “when next”.
Constants§
- DEFAULT_
TZ - The zone a cron trigger names when it names none.
- JITTER_
MAX_ MS - The longest fixed offset a job’s fires are spread by (§5.1).
Functions§
- jitter_
ms - The job’s fixed jitter, 0 up to
JITTER_MAX_MS, derived from its id (FNV-1a), so jobs due at the same minute don’t all start at once and a job’s offset is the same on every instance and after a restart. - parse_
tz - An IANA zone name (
America/New_York,UTC). Empty is UTC.