# Digests all sending at the same time

**URL:** https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257
**Category:** Support
**Tags:** activity-summary
**Created:** [August 21, 2018, 7:17am UTC](https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257 "2018-08-21T07:17:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [August 21, 2018, 7:17am UTC](https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257/1 "2018-08-21T07:17:58Z")

</div>

So I had an issue a long time ago where our digest emails stopped working for a extended period of time (I set the ‘suppress digest email after days’ value too high as I wanted to disable it, but this prevented all digest emails from sending).

Now a huge amount of digest emails are clumped together and get sent out on the same day, at the same time. It’s quite a bit of a shotgun and SMTP providers are not a fan.

I believe this also caused an issue where a large amount of bounced emails were reset on the same day causing our under 0.5% bounce rate to spike up to 60%. I’m going to permanently disable all users who reach the bounce threshold of 4 to prevent this in the future.

Is there a way to randomise and re-distribute the digest schedule somewhat evenly? Would appreciate any help.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 22, 2018, 12:24am UTC](https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257/2 "2018-08-22T00:24:57Z")

</div>

If your issue is the backlog in Sidekiq I believe there is a way to flush the Sidekiq queue.

---

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [August 23, 2018, 9:45am UTC](https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257/3 "2018-08-23T09:45:15Z")

</div>

@codinghorror - I did have that issue at one point and flushed it. The issue currently is more that, due to the emails not being sent for a long time the weekly digest emails all got delayed for longer than a week. So I believe the logic for sending emails is something like if the last emailed time is more than 1 week ago (depending on the digest schedule), send email now. Essentially putting the once naturally distributed weekly digests (aligned with when the user signed up) into a weekly burst.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [August 23, 2018, 9:50am UTC](https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257/4 "2018-08-23T09:50:50Z")

</div>

If digest emails aren’t that important you can maybe just disable them outright?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [August 23, 2018, 12:33pm UTC](https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257/5 "2018-08-23T12:33:02Z")

</div>

Flush the queue and increase the `suppress digest email after days` site setting value daily (or even more often after your sidekiq queue is cleared and if not exceeded the quota) from a small number to your current value. It will resolve the issue. For example 3, 7, 15 … 365

---

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [August 23, 2018, 2:21pm UTC](https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257/6 "2018-08-23T14:21:37Z")

</div>

Wow thanks @vinothkannans, really appreciate it - this should work perfectly. I’ll report back if there are any issues, but should be smooth sailing 😃

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 22, 2018, 2:26pm UTC](https://meta.discourse.org/t/digests-all-sending-at-the-same-time/95257/7 "2018-09-22T14:26:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
