Description
Official Helm Chart version
1.13.1
Apache Airflow version
v2.10.3
Kubernetes Version
v1.26.4
Helm Chart configuration
No response
Docker Image customizations
No response
What happened
We observed that the GET /dags REST API endpoint returns "is_active": true for DAGs that are paused in the Airflow UI.
For example, we have DAGs like airflow_db_clean and airflow that are marked as paused in the Airflow UI, but the REST API still returns "is_active": true. This behavior is consistent across all DAGs that are paused.
What you think should happen instead
The is_active field in the REST API should reflect the same DAG state shown in the Airflow UI. If a DAG is paused in the UI, its is_active field should be false (or a different field clearly indicating its current scheduling status should be provided).
How to reproduce
step1) Navigate to Airflow UI → DAGs tab.
step2) Pause a DAG such as airflow_db_clean.
step3) Go to Docs → REST API Reference (Swagger UI).
step4) Execute the GET /dags API.
step5) Observe that the "is_active" field for paused DAGs is still true.
sample api resoponse =>
{
"dag_id": "airflow_db_clean",
"is_active": true,
"is_paused": true
}
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct