mirror of https://github.com/zulip/zulip.git
Add function to get the set of active queue processors
(imported from commit 1b9e52cfaf00827305a8f790091860436739d11c)
This commit is contained in:
parent
822edaa890
commit
f241897c5b
|
@ -40,6 +40,9 @@ def register_worker(queue_name, clazz):
|
|||
def get_worker(queue_name):
|
||||
return worker_classes[queue_name]()
|
||||
|
||||
def get_active_worker_queues():
|
||||
return worker_classes.iterkeys()
|
||||
|
||||
class QueueProcessingWorker(object):
|
||||
def __init__(self):
|
||||
self.q = SimpleQueueClient()
|
||||
|
|
Loading…
Reference in New Issue