vbala vbala
vbala vbala

Reputation: 45

Why my Airflow REST API returns deleted dags

I have set of REST API in Airflow , and I have multiple dags inside my dag bag, but I have deleted one dag. After that, I restarted my Airflow scheduler and web server, but I get the deleted dag as a part of result.

API: (http://0.0.0.0:8080/api/v1/dags )
Airflow version : v2.1.0

How do I avoid getting deleted dags as a result from Airflow REST API?

Upvotes: 0

Views: 157

Answers (1)

ozs
ozs

Reputation: 3681

only from version 2.1.1

You can filter by "only_active" to your request

see api reference

Upvotes: 1

Related Questions