mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
missedmessage_emails: Clear caches and db query tracking per-loop.
Otherwise, these accumulate and leak memory.
This commit is contained in:
committed by
Tim Abbott
parent
23504308fb
commit
3cbce0c5c7
@@ -689,6 +689,8 @@ class MissedMessageWorker(QueueProcessingWorker):
|
|||||||
|
|
||||||
def work(self) -> None:
|
def work(self) -> None:
|
||||||
while True:
|
while True:
|
||||||
|
flush_per_request_caches()
|
||||||
|
reset_queries()
|
||||||
try:
|
try:
|
||||||
finished = self.background_loop()
|
finished = self.background_loop()
|
||||||
if finished:
|
if finished:
|
||||||
|
|||||||
Reference in New Issue
Block a user