优化脚本
This commit is contained in:
@@ -18,7 +18,7 @@ def worker():
|
||||
client = redis.Redis(connection_pool=redis_pool)
|
||||
while True:
|
||||
try:
|
||||
cmd = client.blpop(QUEUE, 60)
|
||||
cmd = client.lpop(QUEUE)
|
||||
except Exception as ex:
|
||||
cmd = None
|
||||
print(ex)
|
||||
|
||||
Reference in New Issue
Block a user