mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-10 09:40:55 +08:00
removed SQS and IronMQ brokers for now
Both brokers are not atomic and cause all kinds of problems during testing. Needs more time. Meanwhile I want to release the pluggable broker backend.
This commit is contained in:
@@ -33,7 +33,9 @@ class Disque(Broker):
|
||||
def delete_queue(self):
|
||||
jobs = self.connection.execute_command('JSCAN QUEUE {}'.format(self.list_key))[1]
|
||||
if jobs:
|
||||
self.connection.execute_command('DELJOB {}'.format(' '.join(map(str, jobs))))
|
||||
job_ids = ' '.join(jid.decode() for jid in jobs)
|
||||
self.connection.execute_command('DELJOB {}'.format(job_ids))
|
||||
return len(jobs)
|
||||
|
||||
def info(self):
|
||||
info = self.connection.info('server')
|
||||
|
||||
Reference in New Issue
Block a user