This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
Retry delay: Update flag, vars and docs to clarify #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BACKSTORY
As I went to start work towards implementing email notification
support per GH-3, I was struck by how unclear the arguments to the
emailNotifier
function (and similarly, theteamsNotifier
function)were. The difference between
config.NotifyMgrEmailNotificationDelay
and
cfg.EmailNotificationDelay()
were not immediately clear and ittook longer than I'd like to admit to fully backtrack and confirm
not only the original intent, but the current behavior surrounding
those settings.
This commit attempts to clarify not only the original intent, but the
purpose behind each related portion of code surrounding what I now
understand to be handling the rate limit and notification retry
delay.
CHANGES
documentation
hard-coded notifications rate limit (hopefully soon to change)
configuration file
delay
toretry_delay
code
search/replace across codebase to replace
Delay
withRetryDelay
Delay
field for theMSTeams
type,and its associated flag, environment variable and TOML config
file setting
replace
sendDelay
parameter withsendRateLimit
to bettercommunicate what the incoming value to
teamsNotifier
andemailNotifier
is intended fordoc comments
REFERENCES