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

Store invalid messages in dead letter queue #213

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tom-sherman
Copy link
Contributor

Quite a simple change but I wanted to also not leak the dlq message structure so changed the generic store function to two specific functions for storing failed commits or jetstream errors.

To do this required splitting out jetstream into it's own crate (to share the types between drainpipe and drainpipe-store). That's where the majority of the diff comes from.

Copy link

vercel bot commented Dec 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
atproto-browser ⬜️ Ignored (Inspect) Visit Preview Dec 1, 2024 0:44am
frontpage ⬜️ Ignored (Inspect) Visit Preview Dec 1, 2024 0:44am
unravel ⬜️ Ignored (Inspect) Visit Preview Dec 1, 2024 0:44am

@github-actions github-actions bot added documentation Improvements or additions to documentation drainpipe labels Dec 1, 2024
Comment on lines -95 to +90
// TODO: This should add a dead letter
store.record_dead_letter_jetstream_error(&e)?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the actual intended change, everything else is a refactor to enable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation drainpipe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant