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

Swtich RequestMailer to deliver mail in the background #8351

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

gbp
Copy link
Member

@gbp gbp commented Jul 31, 2024

Relevant issue(s)

Connected to https://github.com/mysociety/whatdotheyknow-private/issues/315

What does this do?

  • Refactor RSpec examples mail delivery to use helper
  • Switch RequestMailer to use deliver_later to deliver mail in the background.

Why was this needed?

I thought this was going to be needed for the above issue but in retrospect this has been achievable by a theme patch. This is still a good improvement though.


Have you updated the changelog? If this is not necessary, put square brackets around this: skip changelog

Extract deliveries into helper method which stores and clear the mail
queue. This gives us one place to update to perform delayed mail
delivery via ActiveJob.
Deliver emails in the background job instead of doing it inline.
@gbp gbp force-pushed the request-mailer-deliver-later branch from 61de041 to df14c1c Compare August 13, 2024 06:58
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.

1 participant