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

Added on_send_error middleware hook #360

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

Conversation

hawang-wish
Copy link
Contributor

Hi,

I am currently working on a retrying feature to ensure the delivery of messages when the queue service is unstable. I found that it could be really helpful to have this on_send_error so that we can store the failed message and retry later.

I've also added a bool return to make it able to mute exceptions so that we don't have to try-catch the kicking everywhere.

The execution order of on_send_error is reversed, just like what I suggested in #359 .

Please let me know if you have some ideas, suggestions or concerns, and big thanks in advance!

Copy link
Member

@s3rius s3rius left a comment

Choose a reason for hiding this comment

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

Thanks for your contributions. I like the idea.

@s3rius
Copy link
Member

s3rius commented Nov 6, 2024

Can you please doc entry about this functionality in docs folder?

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

Successfully merging this pull request may close these issues.

2 participants