Skip to content

Commit 25365a9

Browse files
Update src/content/docs/workflows/build/sleeping-and-retrying.mdx
Co-authored-by: Matt Silverlock <[email protected]>
1 parent 16670e9 commit 25365a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/docs/workflows/build/sleeping-and-retrying.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ The Workflow instance itself will fail immediately, no further steps will be inv
114114
115115
## Catch Workflow errors
116116
117-
Any uncaught exceptions that propagate to the top level, or any steps that reach their retry limit, will cause the Workflow to end execution in an Errored state. However, this may not be intended, as for example, a cleanup of previous step executions may be required.
117+
Any uncaught exceptions that propagate to the top level, or any steps that reach their retry limit, will cause the Workflow to end execution in an `Errored` state.
118+
119+
If you want to avoid this, you can catch exceptions emitted by a `step`. This can be useful if you need to trigger clean-up tasks or have conditional logic that triggers additional steps.
118120
119121
To allow the Workflow to continue its execution, surround the intended steps that are allowed to fail with a try/catch.
120122

0 commit comments

Comments
 (0)