How CronBeat decides
This page explains, in order, how CronBeat turns pings (or HTTP checks, or host agent and Kubernetes agent events) into statuses and alerts. Reference tables are on Statuses and Incidents and reminders.
The three times of a monitor
Section titled “The three times of a monitor”Every monitor that is not paused has two moments in the future:
- Expected time: when the next success should arrive. For an interval monitor it is the last success plus the interval, for a cron monitor the next cron time after the last success, in the monitor’s time zone.
- Deadline: the expected time plus the grace period (default 5 minutes, 0 seconds to 7 days).
When a run starts and a maximum runtime is set, the deadline becomes start time + maximum runtime instead.
A background scan checks all monitors every 15 seconds, so alerts arrive a few seconds after the deadline.
The states
Section titled “The states”| State | Meaning |
|---|---|
new |
Created, no ping yet. It is judged against the schedule like up. |
up |
The last run succeeded. |
running |
A start ping arrived, the run has not finished. |
late |
Expected time passed, deadline not yet. No alert. |
down |
An incident is open and alerts were sent. |
paused |
Paused by you, or by a plan limit. Nothing is judged. |
Maintenance is a flag on top of these states, not a state of its own: a monitor inside a maintenance window keeps its status, but nothing is judged and the app shows an In maintenance badge, and public status pages show Maintenance.
What moves a monitor
Section titled “What moves a monitor”| Event | Result |
|---|---|
| Expected time passes | up or new becomes late. No alert. |
| Deadline passes | down with the reason missed. Incident opens, every attached channel gets an alert. |
| Run longer than the maximum runtime | down with the reason too_long. |
/fail ping |
down immediately with the reason failed. |
/start ping |
running. Without a maximum runtime nothing else changes until the next expected ping is missing. |
| Success ping | up. The next expected time and deadline are recalculated. An open incident closes and a recovery alert is sent. |
| Healthy HTTP check | Same as a success ping. |
| Pause | paused. Reminders of an open incident are silenced. |
| Resume | new, expectation restarts from now, so no instant alarm. |
Incidents and recovery
Section titled “Incidents and recovery”down opens exactly one incident. While it is open, more misses or failures send nothing new. You get a
reminder 1 hour after it opened, then every 24 hours. The next success closes the incident and sends one
recovery message. A late monitor that gets its ping becomes up quietly.
Protections against false alarms
Section titled “Protections against false alarms”- CronBeat was down. After the scanner was away for more than 90 seconds, missed-run alarms are held back for the next 2 minutes, so pings you could not deliver are not reported against you.
- Agent lost. When the Kubernetes agent is silent for 3 minutes one
agent_lostincident opens, monitors of that cluster are not judged meanwhile, and when the agent returns their deadlines restart from now. Host agents have no such protection: they have no heartbeat and noloststatus. A job that stops reporting is judged like any monitor, it goeslateand thendownafter its grace period. - Maintenance. Covered monitors are not judged while a window is active, and their expectation restarts when it ends.
- Early pings. A ping a few seconds before the expected time does not cause a false alarm for the run that just happened, see Cron expressions.
- HTTP checks repeat a failed attempt once after 3 seconds.
Housekeeping
Section titled “Housekeeping”Expired invitations are removed daily. Email verification and password reset tokens are removed a week after they expired or were used, and payment webhook idempotency records after 90 days. Ping history and closed incidents follow your plan’s retention.
A timeline
Section titled “A timeline”A nightly backup at 02:00 (cron 0 2 * * *), grace period 10 minutes, one channel, the job crashes:
| Time | What happens |
|---|---|
| 02:00 | Expected time. The job does not run (or crashes without pinging). |
| 02:00:15 | The next scan sets the monitor to late. Nothing is sent. |
| 02:10 | Deadline passes. Status down, incident opens, the alert is sent. |
| 03:10 | Reminder 1. |
| 03:10 next day | Reminder 2 (every 24 hours after the first), if still open. |
| 09:30 | You fix the job and it pings. Status up, incident closed, recovery alert sent. |

