airflow.providers.openlineage.utils.selective_enable¶
Attributes¶
Functions¶
|
Set selective enable OpenLineage parameter to True. |
|
Set selective enable OpenLineage parameter to False. |
|
Check if selective enable OpenLineage parameter is set to True on task level. |
Check if DAG is selectively enabled to emit OpenLineage events. |
Module Contents¶
- airflow.providers.openlineage.utils.selective_enable.ENABLE_OL_PARAM_NAME = '_selective_enable_ol'[source]¶
- airflow.providers.openlineage.utils.selective_enable.enable_lineage(obj)[source]¶
Set selective enable OpenLineage parameter to True.
The method also propagates param to tasks if the object is DAG.
- airflow.providers.openlineage.utils.selective_enable.disable_lineage(obj)[source]¶
Set selective enable OpenLineage parameter to False.
The method also propagates param to tasks if the object is DAG.