pub fn cron_validator(v: &SettingValue) -> ClResult<()>Expand description
Validator for any setting whose value is handed to TaskSchedulerBuilder::cron.
Exported for the other crates that register *_cron settings.
Uses the scheduler’s own parser, so the two cannot disagree about what is accepted.
Without it, an expression like "every night" is stored happily and only fails at
the next boot, where the builder silently degrades the task from recurring to
one-shot: it runs once, the finish handler retires the row, and the schedule is
gone for good.