airflow.utils.dag_parsing_context

Module Contents

Classes

AirflowParsingContext

Context of parsing for the DAG.

Functions

get_parsing_context()

Return the current (DAG) parsing context info

class airflow.utils.dag_parsing_context.AirflowParsingContext[source]

Bases: NamedTuple

Context of parsing for the DAG.

If these values are not None, they will contain the specific DAG and Task ID that Airflow is requesting to execute. You can use these for optimizing dynamically generated DAG files.

dag_id :str | None[source]
task_id :str | None[source]
airflow.utils.dag_parsing_context.get_parsing_context()[source]

Return the current (DAG) parsing context info

Was this entry helpful?