The GitHub Actions job "Build Images" on airflow.git has succeeded.
Run started by GitHub user uranusjr (triggered by uranusjr).

Head commit for run:
057d66ba071094eba5e3074de4ed95db171f95ef / Tzu-ping Chung <[email protected]>
When rendering template, unmap task in context

Currently, when a mapped task is being rendered (and unmapped during
the process), the template context continues to reference the mapped
task because the context is created before unmapping. This is however
not useful, and creates obstacles for use cases needing to reference a
task-mapping value (something passed to the expand function).

This patch adds logic to replace context["task"] and context["ti"].task
in-place when a mapped task is being unmapped, so they always reference
an unmapped task during template rendering. This makes writing a Jinja
template for a mapped task more consistent to that for a non-mapped one.

To accommodate this change in reference, some peripheral code is
modified so various task variables point to the right things at the
right moment. A few tests are also modified to ensure this in-place
replacement is done at the right moment.

Report URL: https://github.com/apache/airflow/actions/runs/3134963405

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to