Skip to content

Commit

Permalink
Add RetryAfterError to docs (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
amh4r authored Nov 3, 2023
1 parent e89419e commit e3c4ab8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/docs/functions/retries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,10 @@ export default inngest.createFunction(
</CodeGroup>

[Retries follow this backoff schedule](https://github.com/inngest/inngest/blob/main/pkg/backoff/backoff.go#L10-L22), with 0-30 seconds of random jitter added.

You can manually schedule a retry by throwing `RetryAfterError`:

```ts
// Retry in 5 seconds
throw new RetryAfterError("your error message", 5)
```

1 comment on commit e3c4ab8

@vercel
Copy link

@vercel vercel bot commented on e3c4ab8 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

website – ./

inngest.vercel.app
website-git-main-inngest.vercel.app
website-inngest.vercel.app
www.inngest.com

Please sign in to comment.