user14808811
user14808811

Reputation: 61

AIRFLOW - programmatically List, trigger and stop the DAGS using API

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

Answers (1)

Elad Kalif
Elad Kalif

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

Related Questions