list_dag_runs
Fetch recent runs of a DAG or across all DAGs, with optional state filtering and pagination, to review execution history without needing a run_id.
Instructions
List recent runs of a DAG — useful when you don't already hold a run_id.
Args: dag_id: DAG identifier. Pass "~" to list runs across all DAGs. limit: Max runs to return (default 25). offset: Pagination offset. state: Optional filter, e.g. ["running"], ["failed"], ["success", "queued"].
Returns:
DagRunList with dag_runs (each a DagRunSummary) and total_entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| state | No | ||
| dag_id | Yes | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_runs | Yes | ||
| total_entries | No |