Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ let someState = step.do("call an API", {
}, async () => { /* Step code goes here /* }
```

## Force a Workflow to fail
## Force a Workflow instance to fail

You can also force a Workflow instance to fail and _not_ retry by throwing a `NonRetryableError` from within the step.

Expand All @@ -111,3 +111,5 @@ export class MyWorkflow extends WorkflowEntrypoint<Env, Params> {
```

The Workflow instance itself will fail immediately, no further steps will be invoked, and the Workflow will not be retried.

Users can catch this error if they intend to continue the Workflow execution. Otherwise, the Workflow will fail.
Loading