From 09017dda8ec82bf1b4eea67648f8c33417df32f7 Mon Sep 17 00:00:00 2001 From: "wangwenyan@fangjia.com" Date: Mon, 2 Apr 2018 14:21:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PriceSystem/CalcCmdReceiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PriceSystem/CalcCmdReceiver.py b/PriceSystem/CalcCmdReceiver.py index 90f4bb1..722b11d 100644 --- a/PriceSystem/CalcCmdReceiver.py +++ b/PriceSystem/CalcCmdReceiver.py @@ -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)