mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
queue_processors: Gather statistics on queue worker operations.
This commit is contained in:
committed by
Tim Abbott
parent
f65e6d0d94
commit
5252b081bd
@@ -175,6 +175,9 @@ class SimpleQueueClient:
|
||||
self.ensure_queue(queue_name, opened)
|
||||
return messages
|
||||
|
||||
def queue_size(self) -> int:
|
||||
return len(self.channel._pending_events)
|
||||
|
||||
def start_consuming(self) -> None:
|
||||
self.channel.start_consuming()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user