How to stop running dag using airflow rest api

Viewed 650
1 Answers

You can set the running tasks to failed with Set a state of task instances note that this will stop the task from running and set the task status to failed but it will not invoke the on_failure_callable if you set one on your tasks nor it will invoke the on_kill method of the operator (if there is one).

If you want the DAG to not schedule any more tasks you can set it to Pause with Update a DAG

Related