From 698af1302545d3f5d65bc07beed4c3808322ecfb Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 11 Dec 2024 17:02:12 -0600 Subject: [PATCH] Add batch_run_date --- dags/external_data_dag.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dags/external_data_dag.py b/dags/external_data_dag.py index 2d5300ec..5d989de9 100644 --- a/dags/external_data_dag.py +++ b/dags/external_data_dag.py @@ -40,6 +40,9 @@ "alias": "external", }, render_template_as_native_obj=True, + user_defined_macros={ + "batch_run_date_as_datetime_string": macros.batch_run_date_as_datetime_string, + }, user_defined_filters={ "fromjson": lambda s: loads(s), "container_resources": lambda s: k8s.V1ResourceRequirements(requests=s),