Skip to content
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

Fix pre-mature evaluation of tasks in mapped task group #40460

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shahar1
Copy link
Collaborator

@shahar1 shahar1 commented Jun 27, 2024

closes: #34023


^ 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 newsfragments.

@shahar1 shahar1 force-pushed the fix-premature-evaluation-in-mapped-task-group branch 2 times, most recently from ec21f19 to 2399576 Compare July 12, 2024 13:06
fixup! fixup! fixup! Fix pre-mature evaluation of tasks in mapped task group

fixup! fixup! Fix pre-mature evaluation of tasks in mapped task group

fixup! Fix pre-mature evaluation of tasks in mapped task group

Fix pre-mature evaluation of tasks in mapped task group

Getting the relevant upstream indexes of a task instance in a mapped task group
should only be done when the task has expanded. If the task has not expanded yet,
we should return None so that the task can wait for the upstreams before trying
to run.
This issue is more noticeable when the trigger rule is ONE_FAILED because then,
the task instance is marked as SKIPPED.
This commit fixes this issue.
closes: apache#34023
@shahar1 shahar1 force-pushed the fix-premature-evaluation-in-mapped-task-group branch from 2399576 to a69699e Compare July 13, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trigger Rule ONE_FAILED does not work in task group with mapped tasks
2 participants