This commit is contained in:
minecraft1024a
2025-11-01 10:59:38 +08:00
committed by Windpicker-owo
parent 4a0bd5845e
commit 12c2b806a2
10 changed files with 30 additions and 30 deletions

View File

@@ -290,7 +290,7 @@ class MonthlyPlanLLMGenerator:
# 过滤掉一些明显不是计划的句子
if len(line) > 5 and not line.startswith(("", "以上", "总结", "注意")):
plans.append(line)
# 根据配置限制最大计划数量
max_plans = global_config.planning_system.max_plans_per_month
if len(plans) > max_plans:

View File

@@ -90,7 +90,7 @@ class MonthlyPlanGenerationTask(AsyncTask):
next_month = datetime(now.year + 1, 1, 1)
else:
next_month = datetime(now.year, now.month + 1, 1)
sleep_seconds = (next_month - now).total_seconds()
logger.info(
f" 下一次月度计划生成任务将在 {sleep_seconds:.2f} 秒后运行 (北京时间 {next_month.strftime('%Y-%m-%d %H:%M:%S')})"
@@ -100,7 +100,7 @@ class MonthlyPlanGenerationTask(AsyncTask):
# 到达月初,先归档上个月的计划
last_month = (next_month - timedelta(days=1)).strftime("%Y-%m")
await self.monthly_plan_manager.plan_manager.archive_current_month_plans(last_month)
# 为当前月生成新计划
current_month = next_month.strftime("%Y-%m")
logger.info(f" 到达月初,开始生成 {current_month} 的月度计划...")

View File

@@ -182,7 +182,7 @@ class UnifiedScheduler:
except ImportError:
pass
logger.info(f"统一调度器已停止")
logger.info("统一调度器已停止")
self._tasks.clear()
self._event_subscriptions.clear()