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.
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.
Two ways:
context dictionary passed to execute method of your operator.