fix: default seed_at to 00:00 (HH:MM)

Keep daily tasks next_run=0 startup catch-up; only move midnight
seed schedule default from 00:01 to 00:00 across config/docs/tests.
This commit is contained in:
bot-ci committed 2026-11-02 12:44:40 +08:00
1 parent 8a9cb21408
commit 25cdea5287
7 files changed
+16 -14

No files matched your search

+4 -4
View File
@@ -117,7 +117,7 @@ Telegram 私聊发链接/BV 号 ───┘
145178393, 66389997, 293976264, 3026109
],
"schedule": { "discover_minutes": 60,
"snapshot_at": "23:15", "seed_at": "00:01", "candidate_ttl_days": 7 },
"snapshot_at": "23:15", "seed_at": "00:00", "candidate_ttl_days": 7 },
"discover": { "keywords": ["咻咻满"], "pages": 3, "window_days": 7,
"candidate_min_score": 4 },
"notify": { "min_score": 4, "max_items_per_message": 10 },
@@ -377,7 +377,7 @@ for folder in 配置的年度夹(2025、2026、…):
### 5.1 任务
```
每天 23:15(Asia/Shanghai)全量落盘;00:01 克隆当日壳:
每天 23:15(Asia/Shanghai)全量落盘;00:00 克隆当日壳:
videos = db.where(status='active') # 跨所有年度夹
for v in videos:
if exists(snapshot[today, v.aid]) and ok: continue # 断点续跑
@@ -397,7 +397,7 @@ for folder in 配置的年度夹(2025、2026、…):
| 1600(2027 年末) | 1600 | 约 33 分钟 |
| 3000(2029 年) | 3000 | 约 60 分钟 |
- 23:15 启动全量落盘;00:01 仅本地克隆壳,不影响白天使用;
- 23:15 启动全量落盘;00:00 仅本地克隆壳,不影响白天使用;
- 若单条 0.1s + sleep 1.2s ≈ 1.3s,实际按 1.2s 估算偏保守。
### 5.3 幂等与口径
@@ -782,7 +782,7 @@ config.docker.example.json 服务器配置样例(0.0.0.0 + /data 绝对路径
**进程结构**
```
scheduler 线程:discovery(每 60min) / snapshot_seed(每日 00:01) / snapshot+fans(每日 23:15) / snapshot_recent(小时) / candidate_cleanup(每日)
scheduler 线程:discovery(每 60min) / snapshot_seed(每日 00:00) / snapshot+fans(每日 23:15) / snapshot_recent(小时) / candidate_cleanup(每日)
web 线程:ThreadingHTTPServer :8080
telegram:getUpdates long polling(回调 + 私聊文本入库)
storage:SQLite WAL,单写线程