Repository navigation
TS SDK: add triggerDagRun to the native Dag surface - #73445
Closed
jason810496 wants to merge 6 commits into
Closed
jason810496 wants to merge 6 commits into
jason810496 wants to merge 6 commits into
Conversation
This was referenced Sep 21, 2026
jason810496
force-pushed
the
feature/ts-sdk/trigger-dag-run
branch
10 times, most recently
from
September 27, 2026 13:50
d016ec9 to
ae13e82
Compare
This was referenced Sep 28, 2026
jason810496
force-pushed
the
feature/ts-sdk/trigger-dag-run
branch
2 times, most recently
from
September 29, 2026 12:58
d6b295c to
9ad3c5b
Compare
jason810496
force-pushed
the
feature/ts-sdk/trigger-dag-run
branch
from
October 1, 2026 03:04
9ad3c5b to
172b580
Compare
1 task done
1 task done
Member
Author
|
Finished in #74071. |
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.
TS SDK: add triggerDagRun to the native Dag surface
Why
Decision 4 of
airflow-core/adr/lang-sdk/0008-control-flow-constructs.md, amended here: triggering another Dag's run is an ordinary task the SDK's own runtime runs, so a native Dag needs no Python worker.How
TriggerDagRunOperator: it sendsTriggerDagRun, polls withGetDagRunStateforwaitForCompletion, and withdeferrabledefers toDagStateTrigger, which runs in the Python triggerer, and resumes onexecute_complete.TriggerDagRunOperator, keeps the "Triggered DAG" link, and is recorded indag_dependencies.allowedStatesandfailedStatestakeDagRunStatevalues, checked when the Dag is built.[api] base_url,[operators] default_deferrableand[triggerer] queues_enabledcome from the runtime's environment, read where Python reads them, with Python's fallbacks when unset. The coordinator exports them from Airflow's config in Parse native Lang-SDK Dags with their coordinator's runtime #73842; until then only values set in the worker's environment reach the runtime.What
dag.triggerDagRun, on the Dag and on a task group, andcoordinator/trigger-runner.ts, which runs it.Follow-ups
airflow-core/adr/lang-sdk/0009-provider-operators-as-generated-dsl.mdsays a provider DSL task runs on a Python worker, which a task of a native Dag cannot do. It needs its own amendment.Was generative AI tooling used to co-author this PR?