Schedules

A check's schedule says when the next ping is due. Its grace time says how late that ping may be before the check goes down.

Interval

An interval schedule expects a ping a fixed time after the last one, such as every 15 minutes or every day. Use it for jobs that run on a timer, or when the exact time does not matter.

Cron expression

A cron schedule uses the job's own five-field cron expression and an IANA time zone, such as Europe/Berlin or America/New_York. The next ping is due at the next time the expression matches after the last ping. Daylight saving changes are handled, so a job at 0 9 * * * in New York is expected at 9:00 local time all year.

Grace time

Jobs rarely finish at the same second every day. The grace time is the margin Crony allows after a ping is due. Set it a little longer than the job's usual run time.

Periods, grace times and maximum run times can each be from 1 minute to 365 days.

Maximum run time

When a job sends a start signal, Crony expects the matching success or failure within the maximum run time. If it does not arrive, the check goes down even when its schedule says the next ping is not due yet. When no maximum run time is set, the grace time is used.

States

StateMeaning
NewThe check has not received a ping yet. It does not go down until it has pinged once, unless a started run overruns.
UpThe last signal was a success, and the next one is not due yet.
LateThe next ping is overdue but still inside the grace time. No alert has been sent.
DownThe grace time ran out, a started run went past its maximum run time, or the job reported a failure. Alerts go out.
PausedCrony expects nothing and sends nothing. Pausing also cancels alerts that were still waiting to go out.

From up to down, step by step

Take a backup at 30 2 * * * in UTC with a grace time of 5 minutes. It pings at 02:31 on Monday. On Tuesday the ping is due at 02:30. At 02:30 the check shows Late. At 02:35, with still no ping, it goes down, and Crony starts sending alerts. Crony looks for overdue checks every minute. When the job pings again, the check is up and alerts stop.