mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-18 18:38:06 +08:00
Changes Disque ping to hello
This commit is contained in:
@@ -23,7 +23,7 @@ class Disque(Broker):
|
||||
return self.connection.execute_command('ACKJOB {}'.format(task_id))
|
||||
|
||||
def ping(self):
|
||||
return self.connection.execute_command('HELLO')[0] > 1
|
||||
return self.connection.execute_command('HELLO')[0] > 0e
|
||||
|
||||
def delete(self, task_id):
|
||||
return self.connection.execute_command('DELJOB {}'.format(task_id))
|
||||
|
||||
Reference in New Issue
Block a user