blob: 528fbd9d8760a7622d5ff422103d422f3d10087f [file] [log] [blame]
:py:mod:`airflow.utils.dag_parsing_context`
===========================================
.. py:module:: airflow.utils.dag_parsing_context
Module Contents
---------------
Classes
~~~~~~~
.. autoapisummary::
airflow.utils.dag_parsing_context.AirflowParsingContext
Functions
~~~~~~~~~
.. autoapisummary::
airflow.utils.dag_parsing_context.get_parsing_context
.. py:class:: AirflowParsingContext
Bases: :py:obj:`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.
.. py:attribute:: dag_id
:annotation: :str | None
.. py:attribute:: task_id
:annotation: :str | None
.. py:function:: get_parsing_context()
Return the current (DAG) parsing context info