-
Notifications
You must be signed in to change notification settings - Fork 131
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
Better error handling in base consumer implementation. #479
base: develop
Are you sure you want to change the base?
Better error handling in base consumer implementation. #479
Conversation
self.paused = self.start_paused | ||
self._consume_loop = LoopingCall(self._consume) | ||
self._consume_done = self._consume_loop.start(0) | ||
return succeed(self) |
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.
Why does this need to return a deferred?
… was supposed to put in it. :/
Ready for review. There are two equivalent implementations of |
Since it turned out to be a little more convoluted than I'd thought to get rid of the |
👍 from my side on this change. The only thing we may be overlooking is that previously the consume method could return |
What's stopping this from landing? Am I missing some major objections from people? |
Although I like the errback support and plan to keep it, I think the real solution here is:
Thoughts? |
Modification (suggested by @jerith):
|
…d letter exchange.
I've actually changed my mind on how this should be done initially. I think we should:
|
I think the existing rabbitmq management plugin already goes a long way to seeing exchanges, queues and has the ability to inspect queues & re-queue. |
Currently
vumi.service
consumers don't handle errors very well. Errors should be logged ,rejected
and sent back to RabbitMQ for retrying (for a start).