fix: 完善失败重试与跳过边界
This commit is contained in:
@@ -470,6 +470,27 @@ test: 记录双平台默认规模真实验收
|
||||
fix: 完善失败重试与跳过边界
|
||||
```
|
||||
|
||||
完成记录:
|
||||
|
||||
```text
|
||||
完成日期:2026-07-03
|
||||
相关 commit:fix: 完善失败重试与跳过边界
|
||||
验证命令:
|
||||
- .venv/bin/python -m pytest tests/integration/test_failure_tolerance.py tests/unit/test_report_stats.py tests/integration/test_task_creation.py tests/unit/test_comment_pagination.py tests/unit/test_ai_schema.py -q
|
||||
- .venv/bin/python -m pytest tests/unit tests/integration -q
|
||||
- .venv/bin/python -m pytest tests/unit tests/integration --cov=app --cov-branch --cov-report=term-missing
|
||||
- curl -f http://localhost:8000/health
|
||||
验收结论:
|
||||
- 连续 429 超限测试覆盖并断言退避序列 1s→2s→4s,错误类型为 rate_limited 且不泄露 API Key。
|
||||
- 单个内容条目评论抓取失败时记录 failed item,后续内容继续处理,任务可成功。
|
||||
- 所有内容条目失败时任务 status=failed,error_stage/error_type/error_message 可见。
|
||||
- AI 全批失败已有测试覆盖:评论标记 failed,任务 analysis_status=insufficient。
|
||||
- 报告摘要失败时 item/hotspot 报告仍创建,并使用默认总结文案。
|
||||
- 已有 running 任务时拒绝新建任务,返回 400。
|
||||
- 未发现 httpx.AsyncClient 使用。
|
||||
遗留问题:W04 发现的 SQLite WAL/SHM deleted 句柄问题转入 WO-06。
|
||||
```
|
||||
|
||||
### WO-06 SQLite 数据库稳定性与恢复策略
|
||||
|
||||
优先级:P0
|
||||
|
||||
Reference in New Issue
Block a user