From 6d183e7d1aa2bcab966d2152e58752b255cf4606 Mon Sep 17 00:00:00 2001 From: Andrey Anshin Date: Tue, 30 Apr 2024 22:30:59 +0400 Subject: [PATCH] Do not provide deprecated `execution_date` in `@apply_lineage` (#39327) (cherry picked from commit 10e34d348e15666a7d231bfbca2d1ffd555e7c63) --- airflow/lineage/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/airflow/lineage/__init__.py b/airflow/lineage/__init__.py index 1ca6ad0604f65..6500d8008ea46 100644 --- a/airflow/lineage/__init__.py +++ b/airflow/lineage/__init__.py @@ -82,14 +82,10 @@ def wrapper(self, context, *args, **kwargs): inlets = list(self.inlets) if outlets: - self.xcom_push( - context, key=PIPELINE_OUTLETS, value=outlets, execution_date=context["ti"].execution_date - ) + self.xcom_push(context, key=PIPELINE_OUTLETS, value=outlets) if inlets: - self.xcom_push( - context, key=PIPELINE_INLETS, value=inlets, execution_date=context["ti"].execution_date - ) + self.xcom_push(context, key=PIPELINE_INLETS, value=inlets) if _backend: _backend.send_lineage(operator=self, inlets=self.inlets, outlets=self.outlets, context=context)