Skip to content

TS SDK: draw order-only edges with before and after - #73438

Merged
jason810496 merged 1 commit into
apache:mainfrom
jason810496:feature/ts-sdk/order-only-edges
Sep 30, 2026
Merged

jason810496 merged 1 commit into
apache:mainfrom
jason810496:feature/ts-sdk/order-only-edges

Conversation

@jason810496

@jason810496 jason810496 commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Why

An edge that carries no value has no argument to travel as, so a task call cannot express it. ts-sdk/adr/0002 decision 4 draws it between the references instead — the TypeScript pair for Python's >> and <<.

How

  • loaded.before(cleaned) and cleaned.after(loaded, transformed), both taking any number of references, so one call draws several edges.
  • Each returns the reference it was called on, so a chain keeps drawing from the same task.
  • An edge drawn from both ends is one edge.

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

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. A few suggestions

Comment thread airflow-core/docs/authoring-and-scheduling/language-sdks/typescript.rst Outdated
Comment thread airflow-core/docs/authoring-and-scheduling/language-sdks/typescript.rst Outdated
Comment thread ts-sdk/src/sdk/dag.ts Outdated
Comment thread ts-sdk/src/sdk/dag.ts
Comment thread ts-sdk/src/sdk/dag.ts Outdated
@jason810496
jason810496 force-pushed the feature/ts-sdk/order-only-edges branch 2 times, most recently from 16380b8 to f06e54e Compare September 24, 2026 05:25

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. LGTM.

Self loop detection added and general loop detection follow up PR is in draft.

@jason810496
jason810496 force-pushed the feature/ts-sdk/order-only-edges branch 2 times, most recently from 909171b to bc4cde1 Compare September 27, 2026 13:50
@jason810496
jason810496 force-pushed the feature/ts-sdk/order-only-edges branch 2 times, most recently from 5a6fcf3 to 1eafee5 Compare September 29, 2026 12:58
@jason810496
jason810496 force-pushed the feature/ts-sdk/order-only-edges branch from 1eafee5 to 946f545 Compare September 29, 2026 15:50
@jason810496
jason810496 merged commit 5799660 into apache:main Sep 30, 2026
90 checks passed
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.

3 participants