get_run_status
Retrieve the current state of a DAG run and its task instances. Check if the run succeeded or failed and get per-task status details.
Instructions
Get the state of a DAG run and (optionally) its task instances.
Args:
dag_id: DAG identifier.
run_id: DAG run identifier returned by trigger_dag
(e.g. manual__2026-07-02T14:23:11+00:00).
include_tasks: When True (default), also fetch per-task states.
Returns:
RunStatus with run (a DagRunSummary) and, if requested, tasks (a list of
TaskInstanceSummary: task_id, state, try_number, operator, start/end dates,
duration, map_index). tasks is null when include_tasks is False.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| run_id | Yes | ||
| include_tasks | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| tasks | No |