Skip to main content

Module schedule

Module schedule 

Source
Expand description

Quartz cron schedule helpers shared by every rotation surface.

Structsยง

RotationScheduleClient
The WASM-facing surface for the schedule helpers.

Enumsยง

QuartzSchedulePreset
A named rotation schedule, for presentation only; the server stores only the cron string.

Constantsยง

DAILY_CRON ๐Ÿ”’
EVERY_6_HOURS_CRON ๐Ÿ”’
HOURLY_CRON ๐Ÿ”’
The canonical Quartz cron expression for each named preset. Quartz has 6 or 7 fields (seconds minutes hours day-of-month month day-of-week [year]), one more than UNIX cron.
MONTHLY_CRON ๐Ÿ”’
WEEKLY_CRON ๐Ÿ”’

Functionsยง

is_likely_quartz_cron
Reports whether a string is shaped like a Quartz cron expression. Checks only field count and character set; the server is authoritative.
preset_for_cron
Derives the preset that best describes a stored cron expression. Absent or blank is QuartzSchedulePreset::None, an exact match (ignoring surrounding whitespace) is that preset, and anything else is Custom.