-
I'm using the following API interface, specifying 'only_active' as 'true,' but I'm still getting the entire DAG list, including paused ones, instead of just getting the DAGs with an 'active' status. Can someone please tell me if I'm using it incorrectly or if this is a bug in the Airflow API? I've browsed through the issues, but I couldn't find any relevant information. I used Swagger for api test.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not sure which version of Airflow you have, but regardless active has nothing to do with paused.
When you get DAG information you can see "is_paused" to indicate if the DAG is paused. The "paused" filter in the API has been added in 2.6.0 - so if you want to use it and you have an earlier version of Airlfow you will need to upgrade https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_dags |
Beta Was this translation helpful? Give feedback.
Not sure which version of Airflow you have, but regardless active has nothing to do with paused.
When you get DAG information you can see "is_paused" to indicate if the DAG is paused.
The "paused" filter in the API has been added in 2.6.0 - so if you want to use it and you have an earlier version of Airlfow you will need to upgrade https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#oper…