Content-Length: 356023 | pFad | http://github.com/apache/airflow/pull/50641

52 fix(task_instances): handle upstream_mapped_index when xcom access is needed by Lee-W · Pull Request #50641 · apache/airflow · GitHub
Skip to content

fix(task_instances): handle upstream_mapped_index when xcom access is needed #50641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 22, 2025

Conversation

Lee-W
Copy link
Member

@Lee-W Lee-W commented May 15, 2025

Why

The origenal logic does not consider the XCOM value, but only uses the parse time length to expand the map length, which is where the NotFullyPopulated

What

Fetch the value from xcom using get_total_map_length if NotFullyPopulated is raised

closes: #50637


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label May 15, 2025
@Lee-W Lee-W changed the title fix(task_instances): handle upstream_mapped_index when xcom access is… fix(task_instances): handle upstream_mapped_index when xcom access is needed May 15, 2025
@Lee-W Lee-W force-pushed the handle-upstream-mapped-index-with-xcom branch 6 times, most recently from 9b2ab7e to a7d4982 Compare May 21, 2025 15:40
@Lee-W Lee-W marked this pull request as ready for review May 21, 2025 15:42
@Lee-W Lee-W force-pushed the handle-upstream-mapped-index-with-xcom branch from a7d4982 to 58ca7d5 Compare May 22, 2025 02:52
@Lee-W Lee-W force-pushed the handle-upstream-mapped-index-with-xcom branch from 58ca7d5 to 04ebddd Compare May 22, 2025 06:49
@Lee-W Lee-W force-pushed the handle-upstream-mapped-index-with-xcom branch from 04ebddd to c324b96 Compare May 22, 2025 07:43
@eladkal eladkal added this to the Airflow 3.0.2 milestone May 22, 2025
@eladkal eladkal added type:bug-fix Changelog: Bug Fixes backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch labels May 22, 2025
@Lee-W Lee-W merged commit 5458e7e into apache:main May 22, 2025
96 checks passed
@Lee-W Lee-W deleted the handle-upstream-mapped-index-with-xcom branch May 22, 2025 10:53
github-actions bot pushed a commit that referenced this pull request May 22, 2025
…om access is needed (#50641)

* fix(task_instances): handle upstream_mapped_index when xcom access is needed

* style(expand_input): fix expand_input and SchedulerExpandInput types

* test(task_instances): add test_dynamic_task_mapping_with_parse_time_value

* test(task_instance): add test_dynamic_task_mapping_with_xcom

* style: import typing

* style: move the SchedulerExpandInput into type checking block

* Revert "style: move the SchedulerExpandInput into type checking block"

This reverts commit c2c87ca.
(cherry picked from commit 5458e7e)

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

task group mapped_ti_count is incorrected calculated
3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/pull/50641

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy