# Бесконечный цикл при отправке дайджест-рассылок

**URL:** <https://meta.discourse.org/t/endless-loop-in-digest-emailing/130361>\
**Category:** Bug\
**Tags:** activity-summary\
**Created:** [06.Октябрь.2019 21:34:19 UTC](https://meta.discourse.org/t/endless-loop-in-digest-emailing/130361 "2019-10-06T21:34:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![doom369](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/doom369/32/157964_2.png) [@doom369](https://meta.discourse.org/u/doom369)\
**Post date:** [06.Октябрь.2019 21:34:19 UTC](https://meta.discourse.org/t/endless-loop-in-digest-emailing/130361/1 "2019-10-06T21:34:19Z")

</div>

Всем привет.

Наш сервер Discourse попал в бесконечный цикл и отправляет письма без остановки. Вот вывод файла `shared/standalone/log/rails/production.log`:

```
Delivered mail 7db8eecd-c36a-419c-ae34-0561b08bae25@community.xx.cc (1322.2ms)
  Rendered user_notifications/digest.text.erb (Duration: 50.1ms | Allocations: 12577)
  Rendering user_notifications/digest.html.erb within layouts/email_template
  Rendered user_notifications/digest.html.erb within layouts/email_template (Duration: 139.5ms | Allocations: 26910)
  Rendering user_notifications/digest.text.erb
  Rendered user_notifications/digest.text.erb (Duration: 71.7ms | Allocations: 13505)
Delivered mail 5bbf2e54-96a8-437d-a032-69f98a00f22a@community.xx.cc (1485.2ms)
  Rendering user_notifications/digest.html.erb within layouts/email_template
  Rendered user_notifications/digest.html.erb within layouts/email_template (Duration: 70.9ms | Allocations: 20613)
  Rendering user_notifications/digest.text.erb
  Rendered user_notifications/digest.text.erb (Duration: 38.2ms | Allocations: 11390)

```

Это началось внезапно (вероятно, когда запустился cron для дайджестов:

 ![07-00_30_56](https://global.discourse-cdn.com/meta/original/3X/f/f/ff3084c0e7f5b87dd060177bc8ffdb3315f7eda1.png) )

Сейчас одно ядро полностью загружено отправкой писем с дайджестами.

- Пересборка приложения не помогла;

- Обновление до последней версии не дало результата;

- Включение опции «Отключить сводные письма для всех пользователей» и повторная пересборка приложения тоже не помогли;

Что ещё можно сделать? Как остановить это?  
Заранее спасибо.

---

_[View the full topic](https://meta.discourse.org/t/endless-loop-in-digest-emailing/130361)._
