You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dsl-reference.md
+35-35Lines changed: 35 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -542,7 +542,7 @@ Allows workflows to iterate over a collection of items, executing a defined set
542
542
| for.in | `string` | `yes` | A [runtime expression](#runtime-expressions) used to get the collection to enumerate. |
543
543
| for.at | `string` | `no` | The name of the variable used to store the index of the current item being enumerated.<br>Defaults to `index`. |
544
544
| while | `string` | `no` | A [runtime expression](#runtime-expressions) that represents the condition, if any, that must be met for the iteration to continue. |
545
-
| do | [`task[]`](#task) | `yes` | The task(s) to perform for each item in the collection. |
545
+
| do | [`task`](#task) | `yes` | The task to perform for each item in the collection. |
Copy file name to clipboardExpand all lines: schema/workflow.yaml
+6-21Lines changed: 6 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -355,10 +355,7 @@ $defs:
355
355
type: string
356
356
description: A runtime expression that represents the condition, if any, that must be met for the iteration to continue.
357
357
do:
358
-
type: array
359
-
minItems: 1
360
-
items:
361
-
$ref: '#/$defs/task'
358
+
$ref: '#/$defs/task'
362
359
description: Allows workflows to iterate over a collection of items, executing a defined set of subtasks for each item in the collection. This task type is instrumental in handling scenarios such as batch processing, data transformation, and repetitive operations across datasets.
363
360
required: [ for, do ]
364
361
listenTask:
@@ -513,11 +510,8 @@ $defs:
513
510
type: object
514
511
properties:
515
512
try:
516
-
description: The tasks to perform.
517
-
type: array
518
-
minItems: 1
519
-
items:
520
-
- $ref: '#/$defs/task'
513
+
description: The task to perform.
514
+
$ref: '#/$defs/task'
521
515
catch:
522
516
type: object
523
517
properties:
@@ -537,10 +531,7 @@ $defs:
537
531
description: The retry policy to use, if any, when catching errors.
538
532
do:
539
533
description: The definition of the task to run when catching an error.
540
-
type: array
541
-
minItems: 1
542
-
items:
543
-
$ref: '#/$defs/task'
534
+
$ref: '#/$defs/task'
544
535
required: [ try, catch ]
545
536
description: Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.
546
537
waitTask:
@@ -765,16 +756,10 @@ $defs:
765
756
description: A runtime expression, if any, used to determine whether or not the extension should apply in the specified context.
766
757
before:
767
758
description: The task to execute before the extended task, if any.
768
-
type: array
769
-
minItems: 1
770
-
items:
771
-
$ref: '#/$defs/task'
759
+
$ref: '#/$defs/task'
772
760
after:
773
761
description: The task to execute after the extended task, if any.
0 commit comments