Skip to content

Web UI

Plans and ad-hoc runs

Preview build plans offline, launch ad-hoc sqb commands, rerun failed nodes, and check flag permissions in the Web UI and control API.

Preview builds against the server’s synced warehouse metadata without waking a warehouse, launch ad-hoc sqb commands, and rerun failed nodes from the Web UI or control API.

Anyone with view on every node of a target can preview a build command on the Web UI’s Plan page (or via POST /api/control/locations/{location_id}/targets/{target}/plans).

SQLBuild Web UI Plan page previewing a build with nodes that will run, sources to load, unchanged nodes, and checksSQLBuild Web UI Plan page previewing a build with nodes that will run, sources to load, unchanged nodes, and checks
Previewing a build on the Plan page before running it.

Plans evaluate against the server’s synced copy of warehouse metadata rather than connecting to the warehouse, so previewing never wakes a suspended warehouse. Items that require a live warehouse check (source freshness, retention, table types, column-rename support, unbuilt incremental cursors, or unsynced external sources) are marked unknown_until_run and resolved when the actual build runs.

  • Plans for commands naming a job include that job’s [settings].
  • Identical requests reuse a cached plan for up to 10 minutes while the publication and synced copy are unchanged; click Plan again (or pass "fresh": true) for a fresh plan.
  • Limits: build verb only, 1 waiting plan per person (4 per target), 10-minute expiry, 8 MiB max plan size.

People with run.adhoc can run sqb commands against the current publication from the Web UI’s Plan page or via the API:

  • Dry run: POST /api/control/runs/adhoc/check returns selection, write_set, settings, permissions, and launchable without queuing a run.
  • Launch: POST /api/control/runs/adhoc with a reason and a fresh UUIDv4 or UUIDv7 run_id (idempotent on run_id; UUIDv5 is reserved for server-started runs).
{
"location_id": "0191f0aa-0000-7000-8000-000000000001",
"target": "development",
"command": ["build", "--select", "+orders", "--full-refresh"],
"priority": 0
}

Allowed verbs: build, test, audit, seed, freshness, load, clone, and janitor (only build, seed, load, and clone acquire per-node write claims).

  • clone and janitor dry runs plan from the published version without reading the warehouse and return a note stating what is deferred until runtime (missing origin relations for clone; whole-target cleanup discovery for janitor).
  • Ad-hoc janitor floor: --retention-days and --direct-state-history-versions can keep more than the project’s [janitor] settings (or defaults), never less. To clean up sooner, update the project and republish.

A build whose selectors only reference past runs (run:, failed:, or skipped:) and stays within their nodes requires only run.rerun (granted to Operator) instead of run.adhoc:

{ "command": ["build", "--select", "failed:01a1e000-0000-7000-8000-000000000001+,run:01a1e000-0000-7000-8000-000000000001"] }
  • In the Web UI, Rerun opens the Plan page prefilled with failed:<id>+,run:<id> (or failed:<id> if only audits failed).
  • For a failed clone, retry failed items with ["clone", "--from", "production", "--select", "failed:<id>"]. A janitor run’s objects aren’t project nodes, so rerun the whole janitor instead.
  • You can target a run that is still executing; the server snapshots the currently failed or blocked nodes and queues the rerun until write claims release.
  • Adding options such as --full-refresh, selecting nodes outside the named runs, targeting an ad-hoc, clone, or janitor run, or using a verb other than build requires run.adhoc.

A build naming a job freezes and applies that job’s [settings] (requiring job.run, plus run.rewrite_history or run.load if the job’s settings rewrite history or load sources; ad-hoc runs never auto-retry).

Flags Verbs Permission required
--select, -s, --exclude All run.adhoc (or run.rerun for reruns)
--full-refresh, --start-cursor*, --end-cursor*, --allow-* build run.rewrite_history
--warehouse All run.warehouse (the value names a warehouse of the target on the location)
--vars All run.vars
--load, --reload, load verb build, load run.load
clone verb (--from, --hard-copy) clone run.clone on written nodes
janitor verb (--retention-days, --direct-state-history-versions, --keep-in-use) janitor run.janitor on every node of the target
--max-microbatches, --no-load, --no-tests, --no-audits, --no-python, --fail-fast, --selection-diagnostics, --verbose build run.adhoc
--concurrency, --test-timeout, --case, --inspect, --state, --fail-on-error, --fail-on-stale Matching verbs run.adhoc
priority > 0 All run.prioritise

Flags that read another target (--defer-*), drop safety checks (--allow-missing-migration-origin, --no-sql-analysis, --no-cache), drop views early (--drop-old-name-view), print SQL (--debug), read local files/Git (--since, --explain, --select-file), or override target/project/output flags (--target, --to, --as, --project-dir, --dbt-*, --json, --manifest) are refused.