-
-
Notifications
You must be signed in to change notification settings - Fork 523
Use attempt_threshold to skip reporting on first N attempts #2503
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2503 +/- ##
=======================================
Coverage 98.18% 98.18%
=======================================
Files 128 128
Lines 4837 4845 +8
=======================================
+ Hits 4749 4757 +8
Misses 88 88
|
solnic
left a comment
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, this LGTM. Could you update the CHANGELOG.md (top level one) too so that we can get a green build?
97f9969 to
aaf5a0c
Compare
aaf5a0c to
2181e70
Compare
|
@solnic sorry for the delay. Updated! |
|
What's the intended interaction with I think it would be useful if when What do you think? It's just a matter of flipping the order of the conditionals. |
|
personally I have no objection to that... I think my use case would be supported either way! |
|
Any reasons this is not documented anywhere? |
@Linuus good point, we should definitely document this and related features as it's kinda tricky 😅 I'll make sure we get it done! |
Thanks :) I was mostly curious if it was some beta/internal thing. Just to make sure we don't depend on something we shouldn't. |
|
@Linuus oh, sorry about the confusion. Let me clarify then - it is a first-class feature and you can rely on this 🙂 |
|
One issue with this solution is it means jobs that are out of the developer's control (e.g. |
This is an implementation for #1632.
I am bringing over the concept of
attempt_thresholdfrom Honeybadger.Retry counting is a bit tricky, and so I included a comment based on a GH comment from Honeybadger.
There are two relatively arbitrary decisions I made here that you should validate:
attempt_threshold. Alternatively, we could skip until number of attempts is greater thanattempt_threshold.Thanks for your consideration!