Skip to content

It seems like the 'only_active' API parameter for getting the DAG list in Airflow is not functioning #34384

Answered by potiuk
HwiLu asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure which version of Airflow you have, but regardless active has nothing to do with paused.

  • Active is when the dag is currently present in DAGs folder. When you delete DAG from DAGs folder, it's still present in the database, but it is in "inactive" state (when you add it back it will become active again).
  • Paused is when you manually pause an active DAG for execution

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HwiLu
Comment options

Answer selected by HwiLu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants