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
Support Nameko 2.11.0 and v3 prerelease #26
Conversation
fix implementation, simplify failed delivery test
nameko_amqp_retry/backoff.py
Outdated
@@ -124,44 +122,33 @@ def republish(self, backoff_exc, message, target_queue): | |||
expiration = backoff_exc.next(message, self.exchange.name) | |||
queue = self.make_queue(expiration) | |||
|
|||
# republish to appropriate backoff queue | |||
properties = message.properties.copy() | |||
headers = properties.pop('application_headers') |
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.
I had en issue where in some cases (sorry, can't remember what) that property was not set. Providing a default value (empty dict) would fix it.
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.
Thank you. I will fix this 👍
Thank you for this. As discussed in #25, I still have issues with some tests. I'll post examples here in case someone reproduce it This one happens randomly on any version
This one only happened in
|
I can reliably reproduce the Is your other error consistent or sporadic? |
Sporadic (roughly 60% repro). This would be consistent with plugin change you mentionned |
Great. I think all of these errors are explained by this change in the HTTP API. Inspecting the queues with AMQP seems to work :) |
test against more modern rabbitmq
Good! Just saying, would it be a good idea to make the rabbit_manager use both http and amqp? Thank you a lot for your work. |
@cblegare My colleague @kooba pointed out that this is branch is still not compatible with the pre-release versions of Nameko (3.x), so I will bundle that into this branch |
The prerelease tests here will fail until the changes in nameko/nameko#592 are released |
@mattbennett Thank you! I'll look into nameko 3 too |
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 👍
Changes:
Publisher
fromnameko.amqp.publish
in the backoff publisherDelgating to the
Publisher
utility means we can run against multiple versions of Nameko and whatever versions of Kombu that it chooses.Additional changes for compatibility with the 3.x prerelease (3a10df6):
ack_message
has moved fromqueue_consumer
toconsumer
, so a try/except is added