-
-
Notifications
You must be signed in to change notification settings - Fork 522
Allow Sidekiq jobs with remaining retries to not notify. (#781) #784
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
Conversation
| self.project_root = detect_project_root | ||
| self.rails_activesupport_breadcrumbs = false | ||
| self.rails_report_rescued_exceptions = true | ||
| self.retryable_exceptions = [] |
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.
These changes fail two lint rules:
Assignment Branch Condition size for initialize is too high, can we just increase this from 30 to ~32? Otherwise, I'm not sure if there's a better place to put this configuration.Class has too many lines, not sure if you're OK increasing this limit as well, or if we should try pulling out some of the common functionality. For example,retryable_exception?andexcluded_exception?share logic usingget_exception_class, which we could pull out into autilor similar.
|
I think this sort of behavior can already be accomplished with |
|
@nateberkopec good point. Looking at the implementation of |
|
@brettburley thanks for the PR. curious how you managed to resolve this eventually? I bumped into the same problem, and want to find a way to log errors to sentry, but not every retry, but perhaps only if it fails for at least X retries... I guess with |
|
@brettburley sorry for nagging, but would really appreciate if you could share some more details here. |
|
Rollbar seems to do this with a configurable sidekiq_threshold |
|
I too think it would be preferable to have non-reporting of retried exceptions built in to the sidekiq integration. |
@nateberkopec Can you link to where you wrote an example or can provide one? |
|
Is there a reason not to use |
|
closed because |
This prevents specific exceptions from being notifying when there are remaining retries left on a job in the Sidekiq integration. For example, you might configure with:
See #781 for more details.
Any suggestions as to how I could test with the "Sidekiq full-stack integration" part of the sidekiq spec? In particular, it doesn't appear that the Raven configuration is reset between tests, and other tests don't perform a
Raven.configure, so I'm not sure how bad it would be to set configuration in the spec to add a testretryable_exception.