Prajwal7842 commented on code in PR #71592:
URL: https://github.com/apache/airflow/pull/71592#discussion_r4115997543
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -2259,7 +2260,7 @@ def _render_map_index(context: Context, ti:
RuntimeTaskInstance, log: Logger) ->
return None
log.debug("Rendering map_index_template", template_length=len(template))
jinja_env = ti.task.dag.get_template_env()
- rendered_map_index = jinja_env.from_string(template).render(context)
+ rendered_map_index =
render_template_to_string(jinja_env.from_string(template), context)
Review Comment:
@kaxil thank you for the suggestion. I have applied the changes as per your
comments and updated the unit tests.
--
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]