tirkarthi commented on code in PR #49809:
URL: https://github.com/apache/airflow/pull/49809#discussion_r2062571671


##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -1095,6 +1125,16 @@ def _execute_task(context: Context, ti: 
RuntimeTaskInstance, log: Logger):
     return result
 
 
+def _render_map_index(context: Context, *, jinja_env: jinja2.Environment | 
None, log: Logger) -> 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)
+    print("Map index rendered as " + rendered_map_index)

Review Comment:
   This could be removed since there is a log statement above.



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