kaxil commented on code in PR #38902:
URL: https://github.com/apache/airflow/pull/38902#discussion_r1562401551


##########
airflow/models/taskinstance.py:
##########
@@ -2714,18 +2714,29 @@ def signal_handler(signum, frame):
                 previous_state=TaskInstanceState.QUEUED, task_instance=self, 
session=session
             )
 
-            # Execute the task
+            def _render_map_index(context: Context, *, jinja_env: 
jinja2.Environment | None) -> str | None:
+                """Render named map index if the DAG author defined 
map_index_template at the task level."""
+                if jinja_env is None or (template := 
context.get("map_index_template")) is None:
+                    return None
+                rendered_map_index = 
jinja_env.from_string(template).render(context)
+                log.info("Map index rendered as %s", rendered_map_index)

Review Comment:
   Yeah, worth removing or changing it to debug level (if we think it could be 
useful in debugging)



-- 
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