Adds extra AUTH before PING

This commit is contained in:
Ilan Steemers
2015-09-03 15:50:22 +02:00
parent 453fc3b133
commit 2e4c1c86ed
+2
View File
@@ -23,6 +23,8 @@ class Disque(Broker):
return self.connection.execute_command('ACKJOB {}'.format(task_id))
def ping(self):
if Conf.DISQUE_AUTH:
self.connection.execute_command('AUTH {}'.format(Conf.DISQUE_AUTH))
return self.connection.execute_command('HELLO')[0] > 0
def delete(self, task_id):