How to grant permission to clear specific Airflow DAG?

Viewed 14

I want to create a role that can clear past Airflow DAG execution in specific DAG. I have already found that User role has

  • can delete on DAG Runs
  • can delete on DAGs

https://airflow.apache.org/docs/apache-airflow/stable/security/access-control.html https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/delete_dag_run https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/post_clear_task_instances

But I assume that this permission can delete all DAGs. Which permission should I grant to clear past DAG execution for specific DAG?

0 Answers
Related