From 22ebe7e51b4e3007c150d26c752eb30996c78794 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Mon, 22 Sep 2025 15:52:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8E=E7=AB=AF=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E9=98=B2=E6=AD=A2=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=90=AF=E5=8A=A8=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/timer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/core/timer.py b/app/core/timer.py index 2af2b2f..a5be594 100644 --- a/app/core/timer.py +++ b/app/core/timer.py @@ -87,13 +87,9 @@ class _MainTimer: # 避免重复调起任务 if curtime == queue.get("Data", "LastTimedStart"): - logger.debug("已启动过任务,跳过本任务") continue for time_set in queue.TimeSet.values(): - logger.debug( - f"检查定时任务:{time_set.get('Info', 'Time')}, 启用状态:{time_set.get('Info', 'Enabled')}" - ) if ( time_set.get("Info", "Enabled") and curtime[11:16] == time_set.get("Info", "Time") @@ -101,6 +97,8 @@ class _MainTimer: ): logger.info(f"定时唤起任务:{uid}") task_id = await TaskManager.add_task("自动代理", str(uid)) + await queue.set("Data", "LastTimedStart", curtime) + await Config.QueueConfig.save() await Config.send_json( WebSocketMessage(