You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/v3/errors-retrying.mdx
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@ This task will retry 10 times with exponential backoff.
29
29
One way to gain reliability is to break your work into smaller tasks and [trigger](/v3/triggering) them from each other. Each task can have its own retrying behavior:
30
30
31
31
```ts /trigger/multiple-tasks.ts
32
+
import { task } from"@trigger.dev/sdk/v3";
33
+
32
34
exportconst myTask =task({
33
35
id: "my-task",
34
36
retry: {
@@ -66,7 +68,7 @@ We provide some useful functions that you can use to retry smaller parts of a ta
66
68
You can retry a block of code that can throw an error, with the same retry settings as a task.
0 commit comments