mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-11 01:20: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:
@@ -27,6 +27,9 @@ class Redis(Broker):
|
||||
def delete_queue(self):
|
||||
return self.connection.delete(self.list_key)
|
||||
|
||||
def purge_queue(self):
|
||||
return self.connection.ltrim(self.list_key, 1, 0)
|
||||
|
||||
def ping(self):
|
||||
try:
|
||||
return self.connection.ping()
|
||||
|
||||
Reference in New Issue
Block a user