fix(up): hard timeout and progress for follower capture

This commit is contained in:
kairee committed 2026-11-01 13:24:56 +08:00
1 parent 98cf42a113
commit e903c49921
5 files changed
+88 -3

No files matched your search

+5 -1
View File
@@ -104,6 +104,9 @@ uv run python app.py snapshot --force
uv run python app.py backfill-followers
uv run python app.py backfill-followers --dry-run
# 全量同步默认会在结尾采集缺失粉丝数;可用 --no-capture-followers 跳过
uv run python app.py sync --full --no-capture-followers
# 检查 Cookie 登录态(P1)
uv run python app.py auth-check
@@ -734,7 +737,8 @@ uv run python tests/test_moves.py
### 第 9 轮:时长效率榜、粉丝快照与导航拆分 ✅(2026-11-01)
- 迁移 v4:`video.pages`、`video.up_follower` / `up_follower_at` / `up_follower_backfilled`、`up_profile`;
- 收藏夹同步结束时采集缺失 UP 的粉丝数(`relation/stat`,匿名可用);`first_seen >= 运行开始 - 1h` 记为实时,更早的记为回填;
- 收藏夹同步结束时采集缺失 UP 的粉丝数(`relation/stat`,匿名可用);`first_seen >= 运行开始 - 1h` 记为实时,更早的记为回填;`sync --no-capture-followers` 可跳过;
- 粉丝采集对每条 `relation/stat` 加 45s 硬超时看门狗(防 DNS/传输层挂起),每 25 条输出 `up_profile.progress` 进度;单条失败不阻塞整批;
- `app.py backfill-followers`:一次性回填历史视频粉丝数,支持 `--limit` / `--dry-run`;
- 新增内容效率/互动效率榜与 UP 内容效率(Gamma–Poisson EB 收缩),过滤 < 600 秒与未满 2 天的视频;
- `analytics` 配置段:`min_duration_seconds`、`maturity_days`、`min_view_for_ranking`、`video_shrink_minutes`、`shrink_minutes`;