修复周月画像刷新被新鲜度判断提前跳过的问题
This commit is contained in:
@@ -322,7 +322,13 @@ class MemberContextService:
|
||||
)
|
||||
continue
|
||||
existing_context = self.member_context_db.get_member_context(chatroom_id, wxid)
|
||||
if not self._should_refresh_context(existing_context, active_member):
|
||||
# 周/月刷新不能再完全复用“画像是否新鲜”的跳过逻辑:
|
||||
# 1. 现在 weekly_refresh/monthly_refresh 虽然被调度执行,但如果画像 24h 内刚更新过,
|
||||
# 成员会在这里直接跳过,后面的 digest pipeline 根本不会运行;
|
||||
# 2. 这会导致 t_member_digest 的 weekly/monthly 长期不产出,体感上就像“定时任务没跑”;
|
||||
# 3. 因此这里把“是否需要刷新画像”和“是否需要推进周/月摘要流水线”拆开判断。
|
||||
force_digest_pipeline = bool(enable_weekly_digest or enable_monthly_digest)
|
||||
if not force_digest_pipeline and not self._should_refresh_context(existing_context, active_member):
|
||||
skipped += 1
|
||||
self.LOG.debug(
|
||||
f"[成员交互摘要] 跳过成员(画像仍新鲜): group={chatroom_id}, "
|
||||
|
||||
Reference in New Issue
Block a user