• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 14201997760
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: beccagraber/dev-1452-new_action
DEFAULT BRANCH: master
Ran 01 Apr 2025 06:00PM UTC
Jobs 1
Files 639
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Apr 2025 05:21PM UTC coverage: 80.812% (+0.005%) from 80.807%
14201997760

push

github

web-flow
fix(massEmails): throttle mass email send (#5641)

### đŸ“Ŗ Summary
Limit the rate of emails sent per second to avoid hitting SES limits.


### 👀 Preview steps

1. â„šī¸ have at least 2 users
2. In your settings, set `MASS_EMAIL_THROTTLE_PER_SECOND` to 1
3. Update the `get_inactive_users` query to use a timedelta of 0
4. Create a MassEmailConfig that uses the inactive users query
5. Clear the redis cache and reschedule the the mass-email cron as
necessary so you don't have to wait for the send. `redis-cli KEYS
"*mass_emails*" | xargs redis-cli DEL` will clear the relevant keys when
run in the redis container
6. Open the kpi_worker logs
7. Add the new config to the daily send
8. đŸŸĸ Monitor the sends in the kpi worker logs. There should be about 5
seconds between `Processing MassEmailRecord(id)` logs

6103 of 9693 branches covered (62.96%)

8 of 8 new or added lines in 2 files covered. (100.0%)

23219 of 28732 relevant lines covered (80.81%)

0.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 14201997760.1 01 Apr 2025 06:00PM UTC 639
80.81
Source Files on build 14201997760
  • Tree
  • List 639
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 093b75ad on github
  • Prev Build on main (#14197394737)
  • Next Build on main (#14224600088)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc