mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 05:48:11 +08:00
adds info method to brokers
This commit is contained in:
@@ -32,6 +32,10 @@ class Disque(Broker):
|
||||
if jobs:
|
||||
self.connection.execute_command('DELJOB {}'.format(' '.join(map(str, jobs))))
|
||||
|
||||
def info(self):
|
||||
info = self.connection.info('server')
|
||||
return 'Disque {}'.format(info['disque_version'])
|
||||
|
||||
@staticmethod
|
||||
def get_connection(list_key=Conf.PREFIX):
|
||||
# randomize nodes
|
||||
|
||||
Reference in New Issue
Block a user