From ab985c0066f605a96f526d314860124b382b43b7 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 20 Oct 2021 17:23:56 -0700 Subject: [PATCH] queue_processors: Add a comment clarifying that timeouts only happen when single-threaded. --- zerver/worker/queue_processors.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zerver/worker/queue_processors.py b/zerver/worker/queue_processors.py index 699a5c534a..b7e82dc2ff 100644 --- a/zerver/worker/queue_processors.py +++ b/zerver/worker/queue_processors.py @@ -213,6 +213,8 @@ def retry_send_email_failures( class QueueProcessingWorker(ABC): queue_name: str MAX_CONSUME_SECONDS: Optional[int] = 30 + # The MAX_CONSUME_SECONDS timeout is only enabled when handling a + # single queue at once, with no threads. ENABLE_TIMEOUTS = False CONSUME_ITERATIONS_BEFORE_UPDATE_STATS_NUM = 50 MAX_SECONDS_BEFORE_UPDATE_STATS = 30