dasarijashwanth commented on issue #31801:
URL: https://github.com/apache/airflow/issues/31801#issuecomment-7211601799
Hi, I'd like to work on this. My proposed approach: extend template
rendering so that string values inside the task `params` dict are rendered with
the task context (the same Jinja environment used for `template_fields`), e.g.
in `BaseOperator.render_template_fields` / the template preparation path,
walking `params` values recursively for dicts/lists. This would allow
`params={"s3_file_name": "{{ ti.xcom_pull(task_ids='my_previous_task') }}"}` as
requested.
One design question before I start: should `params` rendering be always-on,
or opt-in per task (to avoid breaking existing Dags whose params contain
literal `{{ }}` text)? Happy to follow maintainer preference and add tests
either way.
--
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]