From 1847b34c64f4c53b2c29e2bd65d264ba07a3f20d Mon Sep 17 00:00:00 2001 From: xiaofeng wang Date: Tue, 10 Jun 2025 08:57:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0Redis=E9=98=9F?= =?UTF-8?q?=E5=88=97=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=E4=BB=A5=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=A9=BA=E9=98=9F=E5=88=97=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DB.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DB.py b/DB.py index 2fd72e4..fd49a4b 100644 --- a/DB.py +++ b/DB.py @@ -286,6 +286,9 @@ class DBVidcon: logger.info("[Redis l2 pop error]", e) self.reconnect_redis() items = [] + if items: + return items, 2 + logger.info("[Redis queues empty] 所有队列均为空") return items, 99 @redis_retry(max_retries=3)