How to get DAG information from within a task in Python & Airflow

Viewed 582

Is there a way to obtain the dag_id from a DAG in Airflow from within one of its tasks in Python?

My purpose is to delete a table (that has been created with the same name of the dag) inside a Task.

1 Answers
Related