Skip to content

Send email deletion emails synchronously to avoid missing record errors#7495

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/send-email-deletion-notifications-synchronously
Dec 15, 2022
Merged

Send email deletion emails synchronously to avoid missing record errors#7495
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/send-email-deletion-notifications-synchronously

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

When a user deletes an email address, we send email notifications to all email addresses in the account (including the deleted one). This doesn't work so well when we try to send it asynchronously since the EmailAddress record is gone by the time it tries to run (NewRelic error).

@mitchellhenke mitchellhenke requested a review from a team December 15, 2022 16:21
changelog: Bug Fixes, Background Jobs, Send email deletion emails synchronously to avoid missing record errors
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/send-email-deletion-notifications-synchronously branch from 4cff103 to 1844ffa Compare December 15, 2022 16:37
@aduth
Copy link
Contributor

aduth commented Dec 15, 2022

Is this the same as what was discussed in this Slack thread (my fault for dropping the ball on following-up with a ticket)?

In that thread I mentioned changing the email argument to a string. Do we need that? 🤔 I can't recall the thinking about that. Perhaps related to #7106?

@mitchellhenke mitchellhenke merged commit 1e18a8d into main Dec 15, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/send-email-deletion-notifications-synchronously branch December 15, 2022 18:23
@aduth aduth mentioned this pull request Dec 19, 2022
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