Skip to content

More robust scheduling for email reports#189

Merged
ukutaht merged 8 commits into
masterfrom
email-reports
Jun 28, 2020
Merged

More robust scheduling for email reports#189
ukutaht merged 8 commits into
masterfrom
email-reports

Conversation

@ukutaht
Copy link
Copy Markdown
Contributor

@ukutaht ukutaht commented Jun 26, 2020

Current email report implementation is fairly bug-prone.

This PR uses Oban's scheduling mechanism to send out weekly and monthly email reports at the correct time. Oban offers a great scheduling primitive that simplifies the code a fair bit and allows us to retry jobs properly.

Further improvements for next stages:

  • Remove sent_weekly_reports and sent_monthly_reports tables
  • Do not attempt to send email after N hard bounces from the recipient

@ukutaht ukutaht merged commit 80b9876 into master Jun 28, 2020
@ukutaht ukutaht deleted the email-reports branch June 28, 2020 10:24
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