Skip to content

Commit a2b21f0

Browse files
docs: remove requirement of 2 subtasks
Signed-off-by: Matthias Pichler <[email protected]>
1 parent b5c71f1 commit a2b21f0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dsl-reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ By breaking down the [workflow](#workflow) into manageable [tasks](#task), organ
226226
The Serverless Workflow DSL defines a list of [tasks](#task) that **must be** supported by all runtimes:
227227
228228
- [Call](#call), used to call services and/or functions.
229-
- [Do](#do), used to define a minimum of two subtasks to perform in sequence.
230-
- [Fork](#fork), used to define a minimum of two subtasks to perform concurrently.
229+
- [Do](#do), used to define one or more subtasks to perform in sequence.
230+
- [Fork](#fork), used to define one or more subtasks to perform concurrently.
231231
- [Emit](#emit), used to emit [events](#event).
232232
- [For](#for), used to iterate over a collection of items, and conditionally perform a task for each of them.
233233
- [Listen](#listen), used to listen for an [event](#event) or more.
@@ -427,7 +427,7 @@ Serves as a fundamental building block within workflows, enabling the sequential
427427

428428
| Name | Type | Required | Description|
429429
|:--|:---:|:---:|:---|
430-
| do | [`map[string, task][]`](#task) | `no` | The tasks to perform sequentially.<br>*If set, must contains **at least** two [`tasks`](#task).* |
430+
| do | [`map[string, task][]`](#task) | `no` | The tasks to perform sequentially. |
431431

432432
##### Examples
433433

@@ -481,7 +481,7 @@ Allows workflows to execute multiple subtasks concurrently, enabling parallel pr
481481

482482
| Name | Type | Required | Description|
483483
|:--|:---:|:---:|:---|
484-
| fork.branches | [`map[string, task][]`](#task) | `no` | The tasks to perform concurrently.<br>*If set, must contains **at least** two [`tasks`](#task).* |
484+
| fork.branches | [`map[string, task][]`](#task) | `no` | The tasks to perform concurrently. |
485485
| fork.compete | `boolean` | `no` | Indicates whether or not the concurrent [`tasks`](#task) are racing against each other, with a single possible winner, which sets the composite task's output. Defaults to `false`. |
486486

487487
##### Examples

dsl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ Serverless Workflow DSL allows for defining reusable components that can be refe
101101
The Serverless Workflow DSL defines several default [task](dsl-reference.md#tasks) types that runtimes **must** implement:
102102

103103
- [Call](dsl-reference.md#call), used to call services and/or functions.
104-
- [Do](dsl-reference.md#do), used to define a minimum of two subtasks to perform in sequence.
105-
- [Fork](dsl-reference.md#fork), used to define a minimum of two subtasks to perform in parallel.
104+
- [Do](dsl-reference.md#do), used to define one or more subtasks to perform in sequence.
105+
- [Fork](dsl-reference.md#fork), used to define one or more two subtasks to perform in parallel.
106106
- [Emit](dsl-reference.md#emit), used to emit [events](dsl-reference.md#event).
107107
- [For](dsl-reference.md#for), used to iterate over a collection of items, and conditionally perform a task for each of them.
108108
- [Listen](dsl-reference.md#listen), used to listen for an [event](dsl-reference.md#event) or more.

0 commit comments

Comments
 (0)