Skip to content

TS SDK: Reject triggerDagRun tasks in dag.if and dag.switch - #74492

Merged
jason810496 merged 2 commits into
apache:mainfrom
guan404ming:ts-sdk-decider-reject-trigger
Oct 14, 2026
Merged

jason810496 merged 2 commits into
apache:mainfrom
guan404ming:ts-sdk-decider-reject-trigger

Conversation

@guan404ming

Copy link
Copy Markdown
Member

Related

Why

  • dag.if and dag.switch need a handler that returns the decision.
  • A triggerDagRun task passed past the types was accepted and failed only when the task ran, with an unclear error.

How

  • Reject a triggerDagRun task in the shared decider placement, so both dag.if and dag.switch fail when the Dag is declared.

Was generative AI tooling used to co-author this PR?

@guan404ming
guan404ming marked this pull request as ready for review October 9, 2026 08:16
guan404ming and others added 2 commits October 13, 2026 11:51
Check the missing handler where it is used, so any operator task given to
dag.if or dag.switch is rejected, and name the operator and the call in the error.

Co-Authored-By: Claude <[email protected]>
@jason810496
jason810496 force-pushed the ts-sdk-decider-reject-trigger branch from 4eacebc to 3bed1c8 Compare October 13, 2026 11:52
@jason810496
jason810496 merged commit 51f1b5b into apache:main Oct 14, 2026
90 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

vatsrahul1001 pushed a commit that referenced this pull request Oct 17, 2026
…ch (#74492) (#74828)

* TS SDK: Reject triggerDagRun tasks in dag.if and dag.switch

* TS SDK: Guard the decider handler in #wrapDecider

Check the missing handler where it is used, so any operator task given to
dag.if or dag.switch is rejected, and name the operator and the call in the error.

---------
(cherry picked from commit 51f1b5b)

Co-authored-by: Guan-Ming Chiu <[email protected]>
Co-authored-by: ZHE YOU LIU <[email protected]>
vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
…ch (#74492) (#74828)

* TS SDK: Reject triggerDagRun tasks in dag.if and dag.switch

* TS SDK: Guard the decider handler in #wrapDecider

Check the missing handler where it is used, so any operator task given to
dag.if or dag.switch is rejected, and name the operator and the call in the error.

---------
(cherry picked from commit 51f1b5b)

Co-authored-by: Guan-Ming Chiu <[email protected]>
Co-authored-by: ZHE YOU LIU <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants