We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9f7c2 commit cf23087Copy full SHA for cf23087
docs/content/docs/api-reference/workflow/retryable-error.mdx
@@ -94,3 +94,21 @@ async function retryStep() {
94
})
95
}
96
```
97
+
98
+Or retry at a specific date and time:
99
100
+```typescript lineNumbers
101
+import { RetryableError } from "workflow"
102
103
+async function retryableWorkflow() {
104
+ "use workflow"
105
+ await retryStep();
106
+}
107
108
+async function retryStep() {
109
+ "use step"
110
+ throw new RetryableError("Retryable!", {
111
+ retryAfter: new Date(Date.now() + 60000) // - retry after 1 minute // [!code highlight]
112
+ })
113
114
+```
0 commit comments