Skip to content
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

add smtp retries #4115

Merged
merged 6 commits into from
Nov 4, 2024
Merged

Conversation

nimjor
Copy link
Contributor

@nimjor nimjor commented Oct 28, 2024

  • Identified the issue which this PR solves.
  • Read the CONTRIBUTING document.
  • Code builds clean without any errors or warnings.
  • Added appropriate tests for any new functionality.
  • All new and existing tests passed.
  • Added comments in the code, where necessary.
  • Ran make check to catch common errors. Fixed any that came up.

Description:
remotemonitor should retry sending emails to create alerts to avoid getting paged due to a temporary network outage or similar.

Which issue(s) this PR fixes:
N/A - this is a small change to implement retrying SMTP send in remotemonitor only

Out of Scope:

Screenshots:

Describe any introduced user-facing changes:

Describe any introduced API changes:
For users of goalert monitor command, an additional field is added to the TOML config to allow specifying a number of times to retry sending email when creating test alerts. The field is validated to ensure inputs are reasonable (in range 0-5).

Additional Info:

@github-actions github-actions bot added size/s and removed size/xs labels Oct 29, 2024
@mastercactapus mastercactapus merged commit 391b155 into target:master Nov 4, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants