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


##########
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:
   Is this log useful?



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to