Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
deferred_work: Reduce batch size due to bad statistics.
Alex Vandiver6e91e326e9fb
diff --git a/zerver/worker/queue_processors.py b/zerver/worker/queue_processors.pyindex 87abe91cae9..fad210b6b6e 100644--- a/zerver/worker/queue_processors.py+++ b/zerver/worker/queue_processors.py@@ -1060,7 +1060,7 @@ class DeferredWorker(QueueProcessingWorker):)stream = Stream.objects.get(recipient_id=event["stream_recipient_id"])# This event is generated by the stream deactivation code path.- batch_size = 100+ batch_size = 50start_time = time.perf_counter()min_id = event.get("min_id", 0)total_messages = 0