Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandiver3cbce0c5c7d0
diff --git a/zerver/worker/queue_processors.py b/zerver/worker/queue_processors.py
index fad210b6b6e..8e48b51a93e 100644
--- a/zerver/worker/queue_processors.py
+++ b/zerver/worker/queue_processors.py
@@ -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: