Skip to content

Commit 6bf7b5e

Browse files
committed
rules of steps
1 parent 5e5eca0 commit 6bf7b5e

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

src/content/docs/workflows/build/dynamic-steps.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ sidebar:
66

77
---
88

9-
TODO
9+
A Workflow does not have to define all of its steps statically: steps can be created programmatically and/or conditionally.
1010

11-
- Workflows don't have to have a fixed number of steps
12-
- Create them programatically, on the fly
13-
- Define names and parameters
14-
- Create steps in a loop or within a Promise
11+
This allows you to not only trigger steps based on specific input parameters, but to also name steps dynamically, set the retry configuration for a step
1512

1613

1714
## Example

src/content/docs/workflows/build/retrying.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Retrying
33
pcx_content_type: concept
44
sidebar:
5-
order: 5
5+
order: 4
66

77
---
88

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Rules of Steps
3+
pcx_content_type: concept
4+
sidebar:
5+
order: 10
6+
7+
---
8+
9+
A Workflow step is self-contained, individually retriable component of a Workflow. Steps may emit (optional) state that allows a Workflow to persist and continue from that step, even if a Workflow fails due to a network or infrastructure issue. A Workflow is comprised of one or more steps.
10+
11+
### Ensure API calls are idempotent
12+
13+
TODO
14+
15+
### Don't rely on state outside of a step
16+
17+
TODO
18+
19+
### Set sensible retry parameters
20+
21+
TODO
22+
23+
### Name your steps clearly
24+
25+
TODO
26+

0 commit comments

Comments
 (0)