diff --git a/robot.py b/robot.py index 912a3c7..136a24a 100644 --- a/robot.py +++ b/robot.py @@ -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: