phanikumv commented on code in PR #76539:
URL: https://github.com/apache/airflow/pull/76539#discussion_r4610989606
##########
airflow-core/docs/authoring-and-scheduling/language-sdks/typescript.rst:
##########
@@ -376,6 +376,48 @@ Exactly one case runs, and there is no default: a decider
that returns anything
returned and what it could have returned. To run several tasks together on one
outcome, put them behind a
single task, or give each its own ``dag.if``.
+Task loops
+~~~~~~~~~~
+
+``loop`` runs a task group again and again, up to ``maxIterations``, until its
handler says stop. The handler
+runs after every iteration as the loop's gate task, and ``getLoop()`` gives a
task its iteration and the
+previous iteration's result:
+
+.. code-block:: typescript
+
+ import { getLoop, type LoopDecision, type XComSequence } from
"@apache-airflow/ts-sdk";
Review Comment:
XComSequence is imported but only appears in a comment, so a reader copying
this gets an unused import.
--
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]