---
url: https://dte.flowexperts.ai/docs/pipelines/preview-and-run.md
---
# Preview & run

## Preview

Runs your steps on a sample and shows a table.

* Reads sources, never writes to a destination.
* Capped at about 20 rows: shape, not totals.
* A broken step (bad cast, missing field, invalid filter) turns the panel red with the error.
* Runs in Airflow's api-server, not as a task, so it isn't in run history.
* Gives up after 30 seconds with a timeout error (`DTE_PREVIEW_TIMEOUT_SECONDS`). Runs have their own, longer [timeout](scheduling.md#failures).

## Run

**▶ Run** starts an Airflow dag run of `dte__<pipeline id>`, asking for parameters first if the pipeline declares any. It appears on the pipeline page straight away and refreshes every couple of seconds.

![Run detail](../assets/pipelines/run-detail.png)

A run shows:

* Status: `pending` → `running` → `completed` or `failed` (see [run statuses](../getting-started/03-concepts.md#run))

* Rows written, elapsed, started

* Trigger params, if any

* Quality checks, each passed or failed

* On failure, the full error

* A timeline of the run's phases (load each source, compile, quality contracts, execute + write) with how long each took

For file destinations the page also shows the first rows of the written file.

Airflow is where the run lives: history, retries, clearing and logs. **Open in Airflow** goes to the dag run, **Task log** to its log. The same page is a **DTE Run** tab on Airflow's own dag run page, so you can start from either side.

![The dte DAG's runs in Airflow](../assets/airflow/dag-grid.png)

The task log has a collapsible group per source load and per step (columns after the step, its SQL, how long it took), then the final SQL, rows written and one line per quality check.

![Task log in Airflow](../assets/airflow/task-log.png)

## Cancel

No cancel button yet. Mark the dag run failed in Airflow, or call `POST /dte/api/runs/{run_id}/cancel`.

## Run history

The **Runs** tab lists the latest 20 runs, marked **Manual** or **Scheduled**. **All runs in Airflow →** opens the DAG's grid for the rest, with filters.
