Skip to content

Runbooks

A runbook is an ordered list of steps that Patrol executes across one or more environments — triggering deployments, calling webhooks, and inserting wait periods between steps. They’re useful for coordinated rollouts, maintenance procedures, and any workflow that needs to touch multiple environments in sequence.

Runbooks list showing runbooks with their status and step count

From Runbooks → New Runbook:

  1. Give it a name and optional description.
  2. Set status to draft while building it; switch to active when it’s ready to run.
  3. Add steps (see below).
  4. Optionally define a parameter schema — typed inputs filled in at execution time (e.g. a version number referenced across multiple steps).

Runbook editor showing the step builder with deploy, wait, and webhook steps

Triggers a deployment on a set of environments. Configure:

  • Target selector — which environments to deploy to (see Targeting below)
  • Parameter overrides — values that override each environment’s stored parameters for this run (useful for passing a version number from a runbook parameter)
  • Continue on failure — if checked, execution moves to the next step even if this deployment fails

Sends an HTTP POST to a URL. Configure:

  • URL — the endpoint to call
  • Headers and body — as key-value pairs
  • Continue on failure — whether to proceed if the webhook returns a non-2xx status

Pauses execution for a fixed duration before the next step runs. Useful when a deployment needs time to warm up before the next step begins (e.g. a rolling restart that needs 60 seconds for health checks to pass).

Each deploy step uses a target selector to choose which environments it acts on:

ModeDescription
ExplicitSpecify individual environments — exact control over which are affected
By customerAll environments belonging to a specific customer
AllEvery environment in your tenant — use with care

Open a runbook and click Run. If the runbook has a parameter schema, a form appears first to fill in the values for this execution.

Runbook detail page showing steps and the Run button

Patrol enqueues the runbook and begins executing steps in order. Each step runs only after the previous one completes (or fails with “continue on failure” checked).

Open an execution to see per-step progress, timing, and any error messages.

Runbook execution detail showing step statuses, timing, and execution log

StatusMeaning
queuedWaiting to start
runningCurrently executing
succeededAll steps completed successfully
partialSome steps failed but execution continued (continue on failure was set)
failedA step failed and execution stopped
cancelledManually cancelled before completion

Runbooks can run on a cron schedule rather than being triggered manually:

  1. Open the runbook and enable Schedule.
  2. Set a cron expression (e.g. 0 2 * * 1 for 2 am every Monday) and timezone.
  3. Set a default target selector used when no step-level override is set.

Scheduled executions appear in the execution history alongside manual ones.