This commit is contained in:
Cyberes 2023-10-04 10:29:58 -06:00
parent 4634e36eeb
commit 7e3af3599d
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ class RedisPriorityQueue:
return self.redis.zcard('queue') return self.redis.zcard('queue')
def len(self, model_name): def len(self, model_name):
print(self.redis.zrange('queue', 0, -1))
count = 0 count = 0
for key in self.redis.zrange('queue', 0, -1): for key in self.redis.zrange('queue', 0, -1):
item = json.loads(key) item = json.loads(key)