-
Notifications
You must be signed in to change notification settings - Fork 129
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
reader: by default, archive failed messages to disk #135
base: master
Are you sure you want to change the base?
Conversation
RFR @mreiferson. I'd love any naming comments you have, and if you can think of an obvious way to disable this (an additional parameter of |
logger.warning('[%s] giving up on message %s after %d tries (max:%d) %r', | ||
self.name, message.id, message.attempts, self.max_tries, message.body) | ||
|
||
self.failed_count += 1 |
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 don't see where this is being initialized?
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.
haha. just copy & pasting from my custom giving_up()
here. I'll try some real validation =)
@jehiah should we also bump |
Do we need to provide a param to disable archiving when we already encourage users to subclass and override the method? |
what're we doing on this one? |
This is a follow up to #134 and changes the default behaviour of
Reader.give_up()
to be less surprising by writing messages that are "given up on" to disk instead of dropping them completely.