jason810496 opened a new pull request, #76365:
URL: https://github.com/apache/airflow/pull/76365
Record how an author writes a task loop in each language, so the three
surfaces are agreed before any of them is built and each one reads as its own
language rather than as transliterated Python. What a loop means is left to the
core ADR this stacks on.
The three agree on the shape — a task group with a bound, a gate handler
wired to the terminal task, and a loop context beside the ones a handler
already has — and differ only in spelling. Each ADR carries one worked example
and a signature block.
```ts
const refinement = refine.loop(accurateEnough, { result: evaluated }, {
maxIterations: 10 });
```
```go
refinement := refine.Loop(10, airflow.Until(accurateEnough,
airflow.Inputs(evaluated)))
```
```java
@Airflow.Loop(id = "refine", maxIterations = 10)
static class Refine { /* ... @Airflow.Until marks the gate */ }
```
Documentation only, no behaviour change.
Depends on #76364
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: Claude Code (Opus 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]