Skip to content

TS SDK: Add triggerDagRun to native Dags - #74071

Open
guan404ming wants to merge 1 commit into
apache:mainfrom
guan404ming:ts-sdk-trigger-dag-run
Open

guan404ming wants to merge 1 commit into
apache:mainfrom
guan404ming:ts-sdk-trigger-dag-run

Conversation

@guan404ming

@guan404ming guan404ming commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Related

Why

  • TypeScript Dags cannot trigger another Dag's run yet.
  • Go adds a trigger task as an ordinary task, so TypeScript should too.

How

  • Add dag.task(triggerDagRun(spec), { taskId })(), mirroring Go's dag.Task(airflow.TriggerDagRun(spec), ...).
  • Run the trigger in the TypeScript runtime, with waitForCompletion and deferrable support.
  • Record the triggered Dag as a dependency and add the "Triggered DAG" link.

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

@guan404ming guan404ming changed the title TS SDK: Add triggerDagRun as a dag.task body, as Go does TS SDK: Add triggerDagRun as a dag.task body Oct 2, 2026
@guan404ming
guan404ming force-pushed the ts-sdk-trigger-dag-run branch 3 times, most recently from 20952a7 to 4ba6faa Compare October 2, 2026 07:36
Co-authored-by: Jason(Zhe-You) Liu <68415893+jason810496@users.noreply.github.com>
@guan404ming
guan404ming force-pushed the ts-sdk-trigger-dag-run branch from 4ba6faa to 69b2f9b Compare October 2, 2026 07:47
@guan404ming guan404ming changed the title TS SDK: Add triggerDagRun as a dag.task body TS SDK: Add triggerDagRun to native Dags Oct 2, 2026
@guan404ming
guan404ming marked this pull request as ready for review October 2, 2026 07:55

This branch has not been deployed

No deployments
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.

1 participant