Skip to content
GitHub

GuideOps

Automation

In the panel: Ops › Automation/ops/automationNeeds settings:read

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.
In the panel · Ops › Automation
OpsAutomationListMapConfigure⋯New rule
Triggers5Schedules6MR policies4Freshness3My teamsTeamStatusProblems only
6 schedules · 5 on, 1 paused02:00 next run318 scheduled jobs this week$41.20 automatic AI · forecast $881 failing1 partly failed4 healthy
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.

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.

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.

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.

In the panel · Ops › Automation › Nightly audit
nightlyNightly audit

Failing

1 of 6Run nowPause⋯
OverviewEdit ruleActivity
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
View logAll jobs of this schedule
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.

  1. Click New rule and pick the Schedule tab.
  2. Name it and give it a cadence: a cron expression (0 3 * * 1-5) or an interval (1h, 2d), and its time zone.
  3. 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.
  4. Optionally limit when it may run, add jitter or spread its jobs.
  5. Save. The sheet shows the next five runs, so check them before you leave.
In the panel · Ops › Automation · New rule
Event triggerScheduleMerge request policy
TitleOffice hours CI
Idoffice
Cadence1hEvery hour
Time zoneEurope/Berlin
Analyzersci-jobs
TeamsGizmoNone selected: every repository.
Only these repositoriesacme/square/*forge:path globs; none means every repository of the teams.
Allowed windowsMon–Fri 09:00–18:00
Skip weekends
Skip nights22:00–07:00
Holidays2026-12-24, 2026-12-31
Jitter, minutes10
Spread jobs over the window
Enabled
DiscardSave rule

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:00 covers 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: 1h inside 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.

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:

In the panel · Ops › Automation · Freshness
14 stale6 waiting1204 freshin 3 min next sweep
Every repositoryOn · last sweep: 2 queued, 4 waitingOnSlowerOff
GizmoSlower × 3 · own settingOnSlowerOffUse the every-repository setting
WidgetsOn · from every repositoryOnSlowerOff
  1. Find the team.
  2. Pick On, Slower (every interval and cadence multiplied by a factor from 2 to 10) or Off.
  3. 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.

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.

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.