Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry sending events #822

Merged
merged 12 commits into from
Jan 31, 2025
Merged

Retry sending events #822

merged 12 commits into from
Jan 31, 2025

Conversation

jpwilliams
Copy link
Member

@jpwilliams jpwilliams commented Jan 28, 2025

Summary

Add retries to sending events.

Checklist

  • Added a docs PR that references this PR N/A Post-release
  • Added unit/integration tests
  • Added changesets if applicable

@jpwilliams jpwilliams added the ⬆️ improvement Performance, reliability, or usability improvements label Jan 28, 2025
@jpwilliams jpwilliams self-assigned this Jan 28, 2025
Copy link

changeset-bot bot commented Jan 28, 2025

🦋 Changeset detected

Latest commit: 064a911

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
inngest Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@inngest-release-bot inngest-release-bot added the 📦 inngest Affects the `inngest` package label Jan 28, 2025
return body;
},
{
maxAttempts: 5,
Copy link
Member

Choose a reason for hiding this comment

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

Future - would be nice to configure this optionally like inngest.send(payload, { maxAttempts: 3 })

Copy link
Member Author

Choose a reason for hiding this comment

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

💯 as well as customizing backoff strategy!

@jpwilliams jpwilliams merged commit 1136087 into main Jan 31, 2025
52 checks passed
@jpwilliams jpwilliams deleted the send-event-retry branch January 31, 2025 14:00
BrunoScheufler pushed a commit that referenced this pull request Jan 31, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- [#824](#824)
[`1d72eae`](1d72eae)
Thanks [@BrunoScheufler](https://github.com/BrunoScheufler)! - - Handle
immediate WebSocket failure when connecting to gateway

- [#822](#822)
[`1136087`](1136087)
Thanks [@jpwilliams](https://github.com/jpwilliams)! - Sending events
now has retries, backing off over 5 attempts

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⬆️ improvement Performance, reliability, or usability improvements 📦 inngest Affects the `inngest` package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants