mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-10 22:30:56 +08:00
adds fail method to broker
This commit is contained in:
@@ -32,6 +32,9 @@ class IronMQBroker(Broker):
|
||||
def delete(self, task_id):
|
||||
return self.connection.delete(task_id)['msg']
|
||||
|
||||
def fail(self, task_id):
|
||||
self.delete(task_id)
|
||||
|
||||
def acknowledge(self, task_id):
|
||||
return self.delete(task_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user