-
Notifications
You must be signed in to change notification settings - Fork 139
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
Reset notifyAfterCount on Success #67
Conversation
hi there and thanks for you contribution! :) I've looked at the linked issue and your change and this seems to be a valid fix for it. I didn't have time to test it yet, though. do you see anything against removing that aswell while we're at it? |
Hi, thank you for your fast answer. |
yeah, I could imagine somebody adding a feature that uses this counter (e.g. "resettable" notifiers) at some point, so I don't really care if we leave it in or not ^^ |
oh yes, I misunderstood your point the first time I read it |
okay, my testing setup for this was really manual, but this PR seems to fix the mentioned issue 🎉 note: I feel like notifiers were wonky in general, especially the reported time (e.g. |
@jemand771 we good to merge this? |
@adamboutcher oh yeah, this is good to go ^^ as a general workflow question - should I just merge PRs that look good to me (if I feel like I'm able to judge that) by myself or assign to you or..? I feel like we haven't really talked about that yet |
For now, if you think its a good pr then why not just merge, we can always roll back. Maybe in the future we just need two reviewers (especially if someone else with go knowledge steps up) |
I tested this version in production for a few weeks and it works well. You can merge |
just as a side note, the commit that was added after my review (6a80260) slightly changed the behaviour of the code: this way, if a notifier fails, statping won't retry notifying anymore and will instead think that it has already done that. I don't see how a notifier would even fail temporarily, so it might not matter. (we don't want to retry for permanently broken notifiers) |
The notifiers that depends on 3rd party services could fail, such as the "Mail". |
yes I did this on purpose |
See Issue statping#911