Merge cluster to master #3
|
@ -62,6 +62,8 @@ class RedisPriorityQueue:
|
|||
return self.redis.zcard('queue')
|
||||
|
||||
def len(self, model_name):
|
||||
print(self.redis.zrange('queue', 0, -1))
|
||||
|
||||
count = 0
|
||||
for key in self.redis.zrange('queue', 0, -1):
|
||||
item = json.loads(key)
|
||||
|
|
Reference in New Issue