Commit Graph
3 Commits
Author SHA1 Message Date
chengma c435456977 T-564 async cmhub image tasks 2026-07-09 00:07:09 +08:00
chengmaandClaude Opus 4.8 487408ba0f docs(tasks): refine T-564 with two-commit hint and three-state resume check
补实现提示:分两步 commit(先 DB 层加列+同步 Task dataclass+helper 跑绿,
再 ai.py submit/poll 对接),并写清续查三态判断(image_task_id/image_task_key
的存在组合区分已 submit / submit 前崩溃 / 全新 submit)。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 23:38:51 +08:00
chengmaandClaude Opus 4.8 5f5bf73949 docs(tasks): add T-564 async cmhub image task integration (submit + poll)
对接 cmhub 已实现的异步生图接口(POST /generate/image/tasks + 轮询),
替代当前 900s 同步长等待:submit 拿 task_id、轮询到 succeeded 再下载、
task_id 持久化支撑重启续查、per-attempt 幂等键防重复扣点。含三处结构
改动、五类小改、单测点与 v3.6 文档修订项。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 23:18:35 +08:00