jason810496 commented on code in PR #74543:
URL: https://github.com/apache/airflow/pull/74543#discussion_r4736747009
##########
airflow-core/adr/lang-sdk/0008-control-flow-constructs.md:
##########
@@ -79,6 +79,12 @@ pick.Case(handleLongRef).
dag.Task(airflow.TriggerDagRun(airflow.TriggerDagRunSpec{DagID:
"downstream_etl"}), airflow.TaskSpec{TaskID: "trigger_downstream"}).After(gate)
```
+The TypeScript SDK spells the date options `logicalDate` and `runAfter`. They
are sent as
Review Comment:
This paragraph sits in the Go example section. Could it move near the Jinja
bullet in Consequences, trimmed to `runAfter`?
##########
ts-sdk/README.md:
##########
@@ -65,6 +65,23 @@ A Dag also has order-only dependencies (`before` and
`after`), task groups, bran
[guide](https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/language-sdks/typescript.html)
for all of them.
+To trigger another Dag with a specific logical date and earliest start time:
+
+```ts
+import { triggerDagRun } from "apache-airflow-ts-sdk";
+
+dag.task(
+ triggerDagRun({
+ dagId: "report",
+ logicalDate: new Date("2026-10-01T00:00:00Z"),
+ runAfter: new Date("2026-10-01T06:00:00Z"),
Review Comment:
Following [this
comment](https://github.com/apache/airflow/pull/74543#issuecomment-7208296339),
could we drop `logicalDate` and keep only `runAfter`? I updated #74414 to
match. Without a logical date, the generated run_id gets a random suffix, so a
fixed `runAfter` no longer collides across runs.
--
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]