guan404ming opened a new pull request, #74071:
URL: https://github.com/apache/airflow/pull/74071
supersedes: #73445
related: #73530
## 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?
- [x] Yes, with help of Claude Code Opus 5.5 following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]