fix: set cmhub title read timeout to 600s
This commit is contained in:
@@ -1245,3 +1245,12 @@
|
||||
- 边界:不改 cmhub HTTP 协议、配置 schema、Excel、Shopee/CDP 流程;默认不删除本地新封面文件,不触碰 Shopee,不自动回写 Excel。
|
||||
- 测试:新增/调整 DB、AI、GUI 单测覆盖只重标题保留封面、只重封面保留手动标题、重置全部、多选/筛选范围、committed 警告、运行中禁用、提交历史下补封面。
|
||||
- 验证:`python -m py_compile app\db.py app\ai.py app\gui\tabs\generate.py tests\test_db.py tests\test_ai.py tests\test_gui.py` 通过;`python -m unittest discover -s tests -p test_db.py` 通过(7 tests);`python -m unittest discover -s tests -p test_ai.py` 通过(24 tests);相关 GUI 用例通过;`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(212 tests)。
|
||||
|
||||
## 【2026-07-06】T-535 完成 · cmhub 生成标题读取等待固定 600 秒
|
||||
|
||||
- 状态:DONE
|
||||
- 文档:`docs/06-tasks.md` 新增 T-535,`docs/current-state.md` 记录当前 cmhub 生文请求超时口径。
|
||||
- 代码:`app/ai.py` 新增 `CMHUB_TITLE_READ_TIMEOUT_SECONDS = 600`,cmhub `gen_title()` 的 `title_request` 读取等待固定 600 秒;连接超时仍取 `ai.cmhub.connect_timeout`,重试次数仍取 `ai.retry`。
|
||||
- 边界:封面生成和图片下载继续按分辨率读取等待;direct 兼容路径不变;未改配置 schema、cmhub HTTP 协议、DB、Excel、Shopee/CDP 或 GUI 交互。
|
||||
- 测试:`tests/test_ai.py` 更新 cmhub 标题请求 timeout 断言为 `(connect_timeout, 600)`。
|
||||
- 验证:`python -m py_compile app\ai.py tests\test_ai.py` 通过;`python -m unittest discover -s tests -p test_ai.py` 通过(24 tests);`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(212 tests)。
|
||||
|
||||
Reference in New Issue
Block a user