GuideOps
Automation
See and change what runs when — schedules, event triggers, merge request policies and freshness — as a list or as a map of every rule per team.
Four kinds of rules queue analyzer runs:
| Rule | Fires when |
|---|---|
| Schedule | Its cron expression or interval comes due, inside the time windows you allow. |
| Event trigger | A push, a tag, a merge request, a label or a newly found repository arrives from the forge. |
| Merge request policy | A merge request event matches its conditions; it can also approve, merge, label or comment. |
| Freshness | A stored analysis is older than the code or its cadence. Built in, tuned per team. |
| Schedule | When | Teams | Analyzers | Last 14 runs | Health | Next | On | |
|---|---|---|---|---|---|---|---|---|
Nightly audit · nightly |
0 2 * * * Every day at 02:00 · Europe/Berlin |
Gizmo | audit, licenses | Failing · 3 in a row | today 02:00 | On | Run now | |
Weekly rule mining · weekly-rules |
0 6 * * 1 Mon at 06:00 |
Widgets | rule-miner AI | Partly failed | Mon 06:00 | On | Run now | |
Office hours CI · office |
1h Every hour · weekdays 09:00–18:00 |
Gizmo | ci-jobs | Healthy | today 11:00 | On | Run now | |
Bundle backfill · bundles |
0 3 * * 6 Sat at 03:00 |
Widgets | bundle | Paused | — | Off | Run now | |
| Other teams · 2 schedules |
Schedules go worst first: failing, blocked and partly failed before healthy ones.
Read the list
Section titled “Read the list”The list is the default view. The toolbar narrows it:
- Scope switch. My teams keeps rules that cover every repository or sit in one of your home teams; a picked team keeps rules that cover every repository or sit in that team’s lane. Rules limited to path patterns only sit with the rules for every repository.
- Text filter. Matches a rule’s name, id or analyzer.
- Rule kind. Triggers, Schedules (the default), MR policies and Freshness (with its count of stale analyses), each with its count.
- Filters. Team everywhere; on Schedules also Status and Problems only.
Schedules opens with a strip: how many schedules are on and paused, the next run, the jobs schedules queued this budget week, and the automatic AI spend of the week with its forecast (the same figures as AI spend), then the failing, blocked, partly failed and healthy counts. The table shows each schedule’s cadence in words with its time zone, teams, analyzers (an AI tag marks ones that call a model), the last 14 runs as ticks, health, the last and next run, an on/off switch and Run now. Other teams’ schedules fold into one row.
Triggers and MR policies list one row per rule with what fires it (or its conditions), its status, teams and actions. A row opens the rule’s form in a sheet with Rule and Activity tabs.
Schedule health
Section titled “Schedule health”| Health | Means |
|---|---|
| Healthy | The newest finished run succeeded. |
| Partly failed | Some of its jobs failed and some succeeded. |
| Failing | Jobs failed and none succeeded; the tag counts how many runs in a row. |
| Blocked | The AI budget stopped its jobs. |
| No runs yet | It never finished a run. |
| Paused | It is switched off. |
Runs that queued nothing, or whose jobs were all cancelled, count as skipped and do not change the health.
Inspect a schedule
Section titled “Inspect a schedule”Click a schedule, or step with J / K. The sheet shows the last run as its progress bar, Run now and Pause (or Resume), and Show runs and Show on map in the ⋯ menu.
Failing
1 of 6Run nowPause⋯- Failed
- 3 runs in a row · audit on acme/checkout-web, acme/admin-ui
- First error
- osv-scanner: lockfile not found
- Cadence
- Every day at 02:00 · Europe/Berlin · jitter 10 min
- Next runs
- Thu 02:04 · Fri 02:01 · Sat 02:07 · Sun 02:03 · Mon 02:09
- Teams
- Gizmo
- Analyzers
- audit, licenses
- Spread
- On — repository jobs spread over the run window
| Tab | What it shows |
|---|---|
| Overview | A failure callout when the newest run failed or partly failed (first error, failed repositories, runs in a row, View log), the last 30 runs as ticks, the cron fields, the next five runs and the rule. |
| Edit rule | The schedule form. |
| Activity | Audit events about this schedule: who created, changed, paused or ran it. |
Show runs opens Ops › Runs filtered to the schedule.
Add a schedule
Section titled “Add a schedule”- Click New rule and pick the Schedule tab.
- Name it and give it a cadence: a cron expression (
0 3 * * 1-5) or an interval (1h,2d), and its time zone. - Pick the analyzers, and the teams and path patterns it covers. A repository matching either is covered; with neither the schedule covers every repository in the fleet.
- Optionally limit when it may run, add jitter or spread its jobs.
- Save. The sheet shows the next five runs, so check them before you leave.
The schedule form; the cron expression is read back in words as you type.
How the time controls behave:
- Windows. With allowed windows a run must fall inside one of them; denied windows, skipped nights, weekends and holidays always win. A window whose end is before its start runs past midnight (
Fri 22:00–02:00covers Saturday 01:00). - Moved runs. A cron run that lands in a denied minute moves to the next allowed minute. Several runs that collapse onto one minute run once, so an hourly schedule with nights skipped runs once at 07:00, then hourly.
- Intervals start at the first allowed minute of each allowed stretch of a day and repeat while allowed:
1hinside 09:00–18:00 runs at 09:00, 10:00, …, 17:00. - Jitter delays each run by a stable random amount, the same in the preview and in real runs.
- Spread spaces the repository jobs of one run evenly over the allowed stretch, so 40 repositories do not hit the forge at once.
- Time zones. Times stay local across daylight saving changes: a 03:00 run stays at 03:00.
Tune freshness
Section titled “Tune freshness”Freshness keeps analyses current without schedules: every analyzer says when its record goes stale (the code changed, or a cadence passed), and a sweep every five minutes queues what is stale. Freshness in the list shows tiles for stale, waiting and fresh analyses and the next sweep, then each team:
- Find the team.
- Pick On, Slower (every interval and cadence multiplied by a factor from 2 to 10) or Off.
- To go back to the shared setting, click Use the every-repository setting.
Pick a team to see which analyzers refresh for it and how. The footer names the sweeper’s night window and hourly caps, with a link to Settings › System to change them.
Analyzers that call a model refresh only after they have a record of a commit, wait while automatic work has used the weekly budget minus its reserve, and run at most two an hour by default. Heavy analyzers (coverage, bundles, assets) wait for the night window.
The map
Section titled “The map”Map draws the same rules on one canvas for one team at a time: that team’s rules together with those covering every repository, linked to the events that fire them and the analyzers and actions they lead to.
- The team segments count each team’s rules.
- Narrow the canvas by kind (Triggers, Schedules, Policies, Built in), with Calls AI only, or with text that matches titles, chips and linked events or actions.
- A rule node shows an AI tag, Off, or a status badge: a failing, partly failed or budget-blocked schedule, or stale freshness.
- Click a node to edit it in the drawer, whose footer (Remove, Discard, Save rule) stays pinned. A schedule also has Health and Activity tabs and Open in the schedules list.
Show on Automation on a run in Ops › Runs opens the map with a notice explaining why the job ran and the path that could have queued it highlighted, on the job’s team.
Who can do what
Section titled “Who can do what”Seeing Automation needs settings:read over everything. Saving rules, switching schedules and changing freshness need settings:write; Run now needs analyses:run. Configure opens Settings › Analyzers, where every analyzer’s state is read from these rules.
Related
Section titled “Related”- Runs — the jobs these rules queue, with why each one ran.
- Settings › Analyzers — on, some repositories or off, read from Automation.
- Settings › System — the freshness sweep’s caps and night window.
- Analyzers and runs — the model behind rules and jobs.
- Merge request policies — every condition and action in detail.
- Jobs engine — schedules, windows and freshness decisions.