uranusjr commented on code in PR #46507:
URL: https://github.com/apache/airflow/pull/46507#discussion_r1944390356


##########
task_sdk/src/airflow/sdk/definitions/_internal/templater.py:
##########
@@ -128,6 +128,8 @@ def _do_render_template_fields(
                 setattr(parent, attr_name, rendered_content)
 
     def _render(self, template, context, dag=None) -> Any:
+        if dag and dag.is_asset_triggerable:
+            context.pop("logical_date", None)

Review Comment:
   Can we not add this key to the context in the first place, instead of 
popping it out afterwards?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to