mirror of https://github.com/zulip/zulip.git
4d98b0552e
maybe_send_batched_emails handles batches of emails from different users at once; as it processes each user's batch, it enqueues messages onto the `email_senders` queue. If `handle_missedmessage_emails` raises an exception when processing a single user's email, no events are marked as handled -- including those that were already handled and enqueued onto `email_senders`. This results in an increasing number of users being sent repeated emails about the same missed messages. Catch and log any exceptions when handling an individual user's events. This guarantees forward progress, and that notifications are sent at-most-once, not at-least-once. |
||
---|---|---|
.. | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
openapi | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |