set_dag_paused
Pause or unpause an Airflow DAG to control its execution. Unpause a newly added DAG to allow queued runs to execute.
Instructions
Pause or unpause a DAG.
Locally, newly added DAGs are paused by default, so trigger_dag will queue a run
that never executes until the DAG is unpaused. Call this with paused=False to enable it.
Args: dag_id: DAG identifier. paused: True to pause, False to unpause.
Returns: DagInfo reflecting the updated state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| paused | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| dag_id | No | ||
| fileloc | No | ||
| is_active | No | ||
| is_paused | No | ||
| description | No | ||
| next_dagrun | No | ||
| last_parsed_time | No | ||
| has_import_errors | No |