check_rabbitmq_queue: Increase deferred_email_senders paging thresholds.

c5200e8b05 switched `digest_emails` from sending emails by inserting
into the ScheduledEmail table, and being processed later by
`deliver_scheduled_emails`, to inserting into the
`deferred_email_senders` RabbitMQ queue.  This moved it from being in
an unmonitored table, to a monitored queue.

This slightly improved throughput -- but began paging, since the
backlog was now in a monitored form.  Increase the paging thresholds
to not page for expected behaviour.
This commit is contained in:
Alex Vandiver
2025-03-11 19:04:52 +00:00
committed by Tim Abbott
parent 5bf38e30e7
commit 232de4b98f

View File

@@ -50,7 +50,7 @@ MAX_SECONDS_TO_CLEAR: defaultdict[str, int] = defaultdict(
digest_emails=1200,
missedmessage_mobile_notifications=120,
embed_links=60,
deferred_email_senders=240,
deferred_email_senders=3600,
)
CRITICAL_SECONDS_TO_CLEAR: defaultdict[str, int] = defaultdict(
lambda: 60,
@@ -58,7 +58,7 @@ CRITICAL_SECONDS_TO_CLEAR: defaultdict[str, int] = defaultdict(
missedmessage_mobile_notifications=180,
digest_emails=1800,
embed_links=90,
deferred_email_senders=300,
deferred_email_senders=4500,
)