Skip to content

Conversation

@vatsrahul1001
Copy link
Contributor

@vatsrahul1001 vatsrahul1001 commented Jul 4, 2025

This PR fixes a logic issue introduced in #48006. That PR was meant to prevent mapped tasks from starting directly from the triggerer, but it had a misplaced return False outside the if block, so it always returned early. At the time, the logic issue was hidden because of indentation.

Later, #51701 fixed the indentation, which made the earlier bug more obvious.

closes :#52845

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

@vatsrahul1001 vatsrahul1001 requested a review from uranusjr as a code owner July 4, 2025 10:27
@vatsrahul1001 vatsrahul1001 changed the title Fix mapped triggerer Fix: Skip early return only if start_from_trigger is False or unset in partial_kwargs Jul 4, 2025
@vatsrahul1001 vatsrahul1001 changed the title Fix: Skip early return only if start_from_trigger is False or unset in partial_kwargs Skip early return only if start_from_trigger is False or unset in partial_kwargs Jul 4, 2025
@vatsrahul1001 vatsrahul1001 changed the title Skip early return only if start_from_trigger is False or unset in partial_kwargs Run trigger expansion logic only when start_from_trigger is True Jul 4, 2025
@vatsrahul1001 vatsrahul1001 requested a review from amoghrajesh July 4, 2025 11:07
@vatsrahul1001 vatsrahul1001 assigned kaxil and unassigned kaxil Jul 4, 2025
@vatsrahul1001 vatsrahul1001 requested a review from kaxil July 4, 2025 11:16
@kaxil kaxil added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Jul 4, 2025
@kaxil kaxil merged commit f20b720 into apache:main Jul 4, 2025
58 checks passed
@kaxil kaxil deleted the fix-mapped-triggerer branch July 4, 2025 12:20
github-actions bot pushed a commit that referenced this pull request Jul 4, 2025
…r`` is True (#52861)

(cherry picked from commit f20b720)

Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
closes: #52845
@github-actions
Copy link

github-actions bot commented Jul 4, 2025

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

github-actions bot pushed a commit to astronomer/airflow that referenced this pull request Jul 4, 2025
…r`` is True (apache#52861)

(cherry picked from commit f20b720)

Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
closes: apache#52845
kaxil pushed a commit that referenced this pull request Jul 4, 2025
…r`` is True (#52861) (#52873)

(cherry picked from commit f20b720)


closes: #52845

Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
kaxil pushed a commit that referenced this pull request Jul 4, 2025
…r`` is True (#52861) (#52873)

(cherry picked from commit f20b720)


closes: #52845

Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants