-
Notifications
You must be signed in to change notification settings - Fork 179
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
RabbitMQ requeue with additional nack metadata #2239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It needs a bit of documentation.
Also, did you try accessing the metadata from the message itself instead of passing it around?
You mean in the markdown docs?
I figured the purpose of
Sure we could simply add the additional metadata to the message, but then what's the point in having that extra signature for |
This seems to be tricky. I tried adding the metadata like this
but then the Still trying to figure it out 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! It looks good to me too. It'd be great to add some explanation to the receiving-messages-from-rabbitmq.md#failure-management
On the metadata stuff, we've been kind of entertaining the idea of reworking the message composability and maybe deprecating that method nack(Throwable, Metadata)
.
The current issue is if the message is intercepted in a way to add metadata etc. nack(Throwable, Metadata) method wasn't really composable, and passed metadata would be completely ignored.
It turns out you've discovered that it is not that easy there are already other problems to achieve this.
@ozangunalp Thanks, I'll add a few sentences to that doc section. I don't think it's possible to use metadata from the message itself without additional changes. The So should we stick to |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2239 +/- ##
=============================================
- Coverage 77.95% 11.55% -66.40%
+ Complexity 3712 459 -3253
=============================================
Files 302 304 +2
Lines 12419 12443 +24
Branches 1592 1592
=============================================
- Hits 9681 1438 -8243
- Misses 2015 10819 +8804
+ Partials 723 186 -537
|
I am working on a prototype to allow this and improve the composability of |
f1f8cea
to
15702ef
Compare
Rebased to main, reviewed the test case, added new failure strategy named |
It seems that the CI is unhappy. |
Supports specifying the 'requeue' flag using additional nack metadata. Should fix #2200 .