-
Notifications
You must be signed in to change notification settings - Fork 16
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
Implement Backoff #3
Comments
As described in the docs, we should throttle our consumption if message processing fails. This is easy to determine when using callbacks, but consuming messages through an iterator puts more responsibility on the consumer itself. A couple of ideas come to mind. In the case of using an iterator, we could check it around the def __iter__(self):
...
try:
yield message
except:
# Throttle In the case of using a |
The other option would be to require that the user call In retrospect, I wish this is what we would have done with |
This is what |
The problem with just allowing messages to time out is that it could have the side effect of That's why I think that just assuming |
As @mreiferson pointed out, we should implement the backoff mechanism for failed job processing.
The text was updated successfully, but these errors were encountered: