Skip to content

Commit cac3c32

Browse files
authored
docs: add 'retry' import in code snippet (#1071)
* docs: add 'retry' import in code snippet * docs: import all primitives
1 parent ed8d24f commit cac3c32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/v3/errors-retrying.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ We provide some useful functions that you can use to retry smaller parts of a ta
6666
You can retry a block of code that can throw an error, with the same retry settings as a task.
6767

6868
```ts /trigger/retry-on-throw.ts
69+
import { task, logger, retry } from "@trigger.dev/sdk/v3"
70+
6971
export const retryOnThrow = task({
7072
id: "retry-on-throw",
7173
run: async (payload: any) => {

0 commit comments

Comments
 (0)