mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
queue_processors: Add a comment clarifying that timeouts only happen when single-threaded.
This commit is contained in:
committed by
Tim Abbott
parent
a1d22cc7fa
commit
ab985c0066
@@ -213,6 +213,8 @@ def retry_send_email_failures(
|
|||||||
class QueueProcessingWorker(ABC):
|
class QueueProcessingWorker(ABC):
|
||||||
queue_name: str
|
queue_name: str
|
||||||
MAX_CONSUME_SECONDS: Optional[int] = 30
|
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
|
ENABLE_TIMEOUTS = False
|
||||||
CONSUME_ITERATIONS_BEFORE_UPDATE_STATS_NUM = 50
|
CONSUME_ITERATIONS_BEFORE_UPDATE_STATS_NUM = 50
|
||||||
MAX_SECONDS_BEFORE_UPDATE_STATS = 30
|
MAX_SECONDS_BEFORE_UPDATE_STATS = 30
|
||||||
|
|||||||
Reference in New Issue
Block a user