Maintenance windows
A maintenance window tells CronBeat that missing or failing runs during a period are expected. Use it for deployments, database migrations and planned downtime.
What is it for
Section titled “What is it for”Planned work makes jobs miss their run or fail on purpose: deployments, database migrations, server reboots. A maintenance window tells CronBeat to stay quiet for those monitors during that time, so you get no false alarms and no noise in your channels.
When to use it
Section titled “When to use it”- A deployment that restarts the machine that runs your jobs.
- A weekly maintenance slot at a fixed time, with a weekly window in your time zone.
- Planned vendor downtime for the systems your jobs depend on.
Windows are not downtime: they do not lower the uptime percentage.
What happens during a window
Section titled “What happens during a window”For every monitor covered by an active window:
- The monitor is not checked: it does not become
lateordownbecause a ping is missing. - A
/failping is only recorded in the ping history. It does not open an incident. - Slow run alerts are not sent.
- Open incidents stay open but their reminders stop.
- HTTP checks are not run.
- Public status pages show the component as
maintenance, and the status badge saysmaintenance. - Pings are still accepted and stored.
When the window ends, the expected time of each monitor is recalculated from that moment, so a job that did not run during the window does not raise an instant alert. Windows are applied by a background job (every 30 seconds by default), so a window starts and ends within about half a minute of the set time.
Kinds of windows
Section titled “Kinds of windows”| Kind | Fields | Rules |
|---|---|---|
once |
startsAt, endsAt |
The end must be after the start and in the future. At most 30 days long. |
weekly |
weekdays, startTime, durationMinutes, timezone |
Weekdays are numbers from 1 (Monday) to 7 (Sunday). startTime is HH:mm in the given IANA time zone. Duration is 5 minutes to 24 hours. A window may run past midnight. |
Every window has a name (1 to 80 characters) and covers either all monitors of the project or a list of monitors and Kubernetes clusters (agents). A cluster window also silences the agent lost alarm of that cluster during the window and for 5 minutes after it.
Announce on status pages
Section titled “Announce on status pages”A window can be marked Show on status pages. Then the name, the times and the components of a status page that the window covers are listed on that page as Scheduled maintenance, while the window runs and up to 14 days ahead (at most 5 entries, soonest first). A weekly window shows its next run. Windows that cover nothing on a page are not listed there, and no other monitor name is ever shown.
It is off by default because the window name becomes public to anyone with the page link. Keep it free of
internal details. If you change a window through the API without sending announce, the saved value is kept. The
announcement is also in the JSON summary and Atom feed of the page.
Limits and roles
Section titled “Limits and roles”- Windows per project: Free 2, Pro 20, Enterprise 100 (see Plans and limits). Creating
one beyond the limit is refused with
403and the codeplan_limit_exceeded. - Creating, changing and deleting windows needs the member role, viewing needs viewer, see Members and roles.
Ended and old windows
Section titled “Ended and old windows”A one-time window that has ended no longer counts against the plan limit and is removed 90 days after it ended. Weekly windows always count. If the plan limit drops below your number of windows, they stay and only new ones are refused.
Example
Section titled “Example”curl -sS -X POST https://api.cronbeat.dev/api/maintenance-windows \ -H "Authorization: Bearer cb_pat_YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Sunday deploy", "kind": "weekly", "weekdays": [7], "startTime": "03:00", "durationMinutes": 60, "timezone": "Europe/Istanbul", "allMonitors": true }'The REST API reference lists all fields.
What happens when
Section titled “What happens when”A one-off window on Saturday 22:00 to 23:00 for all monitors. The hourly sync job sync-orders is expected at
22:00 and 23:00.
| Time | What happens |
|---|---|
| 21:59 | Monitors are up, as usual. |
| 22:00 | The window starts (within about 30 seconds). Monitors get the In maintenance badge. The 22:00 run does not ping because the server is rebooting. |
| 22:30 | Still no ping. The monitor does not become late or down, no alert is sent. |
| 22:45 | A leftover /fail ping arrives from a half-started job. It appears in the history, the status does not change. |
| 23:00 | The window ends. The expectation restarts from this moment, so the missing 22:00 run is forgotten. |
| 23:00 to 00:00 | The next success ping arrives at its normal time and everything continues. If it did not arrive, the usual late and down rules apply from 23:00 on. |
Other situations:
| Situation | Result |
|---|---|
A monitor was already down before the window |
It stays down until its next success. Reminders of the open incident are silenced during the window. |
| A weekly window crosses a daylight saving change | It follows the wall clock of its time zone. |
| An HTTP check monitor is covered | No requests are sent during the window. |
| A public status page shows the monitor | It shows Maintenance and the outage is not recorded. |
| The window is marked to show on status pages | The page lists it as Scheduled maintenance up to 14 days before it starts and while it runs. |
| You delete a window while it is active | Monitors are checked again at the next sync (within about 30 seconds). |

