Stop skipping none_failed_min_one_success tasks in mapped task groups - #69377
Merged
shahar1 merged 2 commits intoJul 23, 2026
Merged
Conversation
shahar1
force-pushed
the
fix-none-failed-min-one-success-mapped-task-group
branch
2 times, most recently
from
July 10, 2026 06:25
6ae8c13 to
01bf84f
Compare
A task with the none_failed_min_one_success trigger rule inside a dynamically mapped task group was evaluated on its not-yet-expanded summary task instance (map_index -1). At that point its upstream had already expanded to map indexes 0..n, so the summary evaluation found no relevant upstream successes and skipped the task before it could expand. Extend the "fast-triggered" set that gets broad depend-on-all-upstreams treatment on the unexpanded summary ti to include this rule, alongside the one_success/one_failed/one_done rules already handled there, so the task waits for its upstream and expands instead of skipping. closes: apache#39801
The issue's reproducer places the none_failed_min_one_success task in a plain task group nested inside the mapped one, so checking only the immediate parent group misses it and the task is still skipped before expansion. Check the closest mapped ancestor group instead.
shahar1
force-pushed
the
fix-none-failed-min-one-success-mapped-task-group
branch
from
July 20, 2026 19:54
01bf84f to
eca477f
Compare
vincbeck
approved these changes
Jul 23, 2026
Contributor
|
Hi maintainer, this PR was merged without a milestone set.
|
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
github-actions Bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Jul 23, 2026
… task groups (apache#69377) (cherry picked from commit dd029a8) Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
aws-airflow-bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Jul 23, 2026
… task groups (apache#69377) (cherry picked from commit dd029a8) Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
dabla
pushed a commit
to dabla/airflow
that referenced
this pull request
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human Summary
Considers
none_failed_min_one_successas fast triggered to avoid skipping before Dynamic Task Group is fully expanded.AI Summary
Click here
A task whose trigger rule is `none_failed_min_one_success` and that lives inside a dynamically mapped task group was being **skipped before the task group expanded**, even though its upstream succeeded.The trigger rule is first evaluated on the task's not-yet-expanded summary task instance (
map_index -1). By that point the upstream inside the same group has already expanded tomap_index 0..n, so the summary-ti evaluation finds no relevant upstream successes, concludes "at least one success required, none found", and skips the task — it never expands.one_success/one_failed/one_donealready avoid this by being treated as "fast-triggered" on the unexpanded summary ti (they depend on all upstream instances until the group expands — see #34023 / #50210).none_failed_min_one_successbelongs in that same set: it can be satisfied by a subset of upstreams, so broad depend-on-all-upstreams counting on the summary ti is safe and lets the task expand normally. This PR adds it there.Reproduced on
main(3.4.0) with the issue's minimal Dag (tg.imawakeended upskippedatmap_index -1whiletg.imsleepyexpanded to0,1,2all success); with the fixtg.imawakeexpands to0,1,2and succeeds. Added a regression test that fails on the buggy code and passes with the fix.A prior attempt at this issue (#40428) was closed in 2024; this revives the fix scoped precisely to the affected trigger rule.
closes: #39801
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 4.8) following the guidelines