Reputation: 61
I want to create python program which can List All active (ON/OFF) DAGS currently on UI. Also want to trigger any DAG out of the list or Stop the DAG in between via python
Is there any Python API to achieve this ?
Upvotes: 2
Views: 1661
Reputation: 15911
In Airflow>=2.0
you can do that with the Rest API.
You will need to use several endpoints for that (List DAGs, Trigger a new DAG run, Update a DAG)
In Airflow<2.0
you can do some of that using the experimental API.
Upvotes: 2