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:
Ilan Steemers
2015-09-04 14:49:17 +02:00
parent 1ccfc66254
commit 3f75e7fa05
12 changed files with 36 additions and 239 deletions
+3 -1
View File
@@ -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')