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

Pivotal ID # 185460059: Retry E-Mails Only Once #734

Merged

Conversation

jhoanmanuelms
Copy link
Contributor

https://www.pivotaltracker.com/story/show/185460059

  • Catch errors on security notifications
  • Use spring logs rolling back policy in order to compress the old log files

- Catch errors on security notifications
- Use spring logs rolling back policy in order to compress the old log files
@jhoanmanuelms jhoanmanuelms self-assigned this Jul 21, 2023
@jhoanmanuelms jhoanmanuelms requested a review from Juan-EBI July 21, 2023 13:13
ACTIVATION_BY_EMAIL -> securityNotificationService.sendActivationByEmailNotification(notification)
PASSWORD_RESET -> securityNotificationService.sendPasswordResetNotification(notification)
}
runCatching {
Copy link
Contributor

@Juan-EBI Juan-EBI Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not retrying but rather sending a message when there is failure. Are this the expectaions? I guess we can at least retry a few times before screate the error message.

This approach looks interesting but maybe an overkill

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the expected approach. The idea of this ticket is to use the same mechanism that we use for the release notifications to register any failure (which we've historically had very few) in the notifications-failed-log queue instead of keeping retrying indefinitely.

This is actually a very similar approach to the one you suggested where the "parking lot" queue is the failed notifications log, we would just need to add automation to it. I've created a ticket for it.

Copy link
Contributor

@Juan-EBI Juan-EBI Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking that we were going to actually stop sending message there as no one actually monitor that queue but if this is the discussed approach that is ok.

Copy link
Contributor

@Juan-EBI Juan-EBI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhoanmanuelms jhoanmanuelms merged commit 32e4328 into master Aug 2, 2023
@jhoanmanuelms jhoanmanuelms deleted the bugfix/pivotal-#185460059-process-notifications-safely branch August 2, 2023 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants