missedmessage_emails: Clear caches and db query tracking per-loop.

Otherwise, these accumulate and leak memory.
This commit is contained in:
Alex Vandiver
2024-02-15 15:39:50 +00:00
committed by Tim Abbott
parent 23504308fb
commit 3cbce0c5c7

View File

@@ -689,6 +689,8 @@ class MissedMessageWorker(QueueProcessingWorker):
def work(self) -> None:
while True:
flush_per_request_caches()
reset_queries()
try:
finished = self.background_loop()
if finished: