清理历史联系人头像同步任务配置

This commit is contained in:
liuwei
2026-05-06 10:58:29 +08:00
parent 2994d2014d
commit 3dd4300608

View File

@@ -187,6 +187,11 @@ class Robot:
"xiuren_download",
"shenshi_r15_download",
"update_image_cache",
# 联系人头像缓存任务在 2026-05-06 调整过命名:
# 1. 旧键 `sync_contact_avatar_cache` 只存在于历史数据库配置;
# 2. 新键统一使用 `contact_avatar_cache_sync`,避免命名风格前后不一致;
# 3. 这里在启动期顺手清理旧键,避免后台任务页长期出现“数据库有记录、运行态无处理器”的幽灵任务。
"sync_contact_avatar_cache",
]
removed = 0
for job_key in migrated_keys: