You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jason810496 (via GitHub)" <gi...@apache.org> on 2026/07/21 03:34:27 UTC

[PR] Support TaskFlow Dag definitions natively in the Go-SDK [airflow]

jason810496 opened a new pull request, #70158:
URL: https://github.com/apache/airflow/pull/70158

   - Depends on: the `refactor/go-sdk/dag-authoring-api` PR (this branch is stacked on it; only the tip commit is new here).
   - 
   
   ## Why
   
   The Go SDK's dag-authoring API wired dependencies with string task ids (`AddTask(fn, spec, []string{"extract"})`), which is typo-prone, forces upstream-first registration, and carries no data — downstream tasks had to pull upstream results from XCom by hand. Python's TaskFlow shows the better model: dependencies fall out of data flow. This PR brings that model to Go.
   
   ```go
   d := reg.AddDag(v1.DagSpec{DagId: "etl", Schedule: "@daily"})
   
   extracted   := d.Task(extract)                                 // (ExtractResult, error)
   transformed := d.Task(transform, v1.Inputs(extracted))         // receives ExtractResult
   d.Task(load, v1.Inputs(transformed), v1.TaskSpec{Retries: 2})  // receives TransformResult
   ```
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes, with help of Claude Code (Fable 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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support TaskFlow Dag definitions natively in the Go-SDK [airflow]

Posted by "uranusjr (via GitHub)" <gi...@apache.org>.
uranusjr commented on PR #70158:
URL: https://github.com/apache/airflow/pull/70158#issuecomment-6075815392

   Is this still needed? #73767 and #73895 seem to cover the same area.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support TaskFlow Dag definitions natively in the Go-SDK [airflow]

Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 commented on PR #70158:
URL: https://github.com/apache/airflow/pull/70158#issuecomment-6080319581

   > Is this still needed? #73767 and #73895 seem to cover the same area, both already merged.
   
   Yeah, we don’t need this one anymore.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support TaskFlow Dag definitions natively in the Go-SDK [airflow]

Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 closed pull request #70158: Support TaskFlow Dag definitions natively in the Go-SDK
URL: https://github.com/apache/airflow/pull/70158


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org