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

Add requeue_on_reject configuration option #112

Merged
merged 5 commits into from
Jul 15, 2022
Merged

Add requeue_on_reject configuration option #112

merged 5 commits into from
Jul 15, 2022

Conversation

cando
Copy link
Contributor

@cando cando commented Jul 11, 2022

This PR adds a requeue_on_reject option to allow a Amqpx.Gen.Consumer to skip the default requeue mechanism that is hard-coded right now in the library.

If the option is not set or set to true, the behaviour remains the same as today.
If the option is set to false:

  1. the handle_message_rejection callback will be called
  2. Basic.reject will be called with requeue: false

Please note that this PR should close issue #56.

@cando cando requested review from neslinesli93, squaini and michelangelomo and removed request for neslinesli93 July 11, 2022 09:09
Copy link
Contributor

@michelangelomo michelangelomo left a comment

Choose a reason for hiding this comment

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

Thank you so much 🙏

@cando
Copy link
Contributor Author

cando commented Jul 11, 2022

Thank you guys for your review. Do you need something else from my side in order to merge this PR?

@edoardocostantinidev
Copy link
Contributor

Hi @michelangelomo @larrywax, are we good to merge?

@michelangelomo michelangelomo merged commit 8396a93 into primait:master Jul 15, 2022
@michelangelomo
Copy link
Contributor

Hi @edoardocostantinidev @cando, sorry for the delay 🙏 amqpx has been released with version 5.9.0

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.

5 participants