fix: trim gen2D slide content to prevent overflow beyond header/footer
Deploy Slides / build-and-deploy (push) Successful in 1m16s

- Reduce Item count per slide: pipeline 4→3, solution 4→2, highlights 6→4
- Remove tech-stack architecture layering Item (moved to tech-stack grid)
- Simplify eino-graph: shorter Go code, 3 Items→2
- Simplify prompt-agent: smaller mermaid, shorter Item text
- Simplify async-task: merge 3 Items→2, remove footer
- Simplify data-model: merge 4 grid items→2
- Simplify architecture: reduce ASCII diagram from 38 to 20 lines
- Simplify dedup-ws: remove JSON code block, shorter Items
- Simplify deployment: smaller mermaid, shorter Items
- Simplify problem: shorter Item text, remove bullet lists
- Simplify style-system: fix typo, shorter Item text
This commit is contained in:
2026-05-30 14:43:23 +08:00
parent d479504f12
commit 19075592e5
13 changed files with 116 additions and 300 deletions
+13 -23
View File
@@ -2,33 +2,23 @@
提交即返回,后台并发执行
<Item title="📤 任务提交流程">
<Item title="📤 任务提交 → 后台执行">
1. 用户提交生成请求 → 创建 Task 记录(状态 `running`)
2. 立即返回 `taskId`,前端开始轮询 / 建立 WebSocket
3. 后台启动 goroutine 执行管线
1. 提交请求 → 创建 Task(`running`)→ 立即返回 `taskId`
2. 前端轮询 / WebSocket 获取进度
3. 后台 goroutine 执行管线,完成后上传素材
</Item>
<Item title="🔄 管线执行与进度推送">
<Item title="🔄 进度与重试">
| 阶段 | 进度范围 | 说明 |
|------|---------|------|
| PromptOptimizer | 5% → 25% | 风格合并 + LLM 优化 |
| AssetGenerator | 25% → 60% | 调用文生图 API |
| QualitySupervisor | 60% → 80% | 视觉模型质检 |
| FormatAdapter | 80% → 100% | 格式组装 + 上传 |
| 阶段 | 进度 | 说明 |
|------|------|------|
| PromptOptimizer | 5→25% | 风格合并 + LLM 优化 |
| AssetGenerator | 25→60% | 调用文生图 API |
| QualitySupervisor | 60→80% | 视觉模型质检 |
| FormatAdapter | 80→100% | 格式组装 + 上传 |
质检重试最多 3 次,任务级重试 1 次,超限降级输出。
</Item>
<Item title="🔁 重试策略">
- **质检重试**(管线内):QualitySupervisor 不合格 → 回退 PromptOptimizer,最多 3 次
- **任务级重试**(管线外):整个管线失败 → 5 秒间隔重试,最多 1 次
- **降级兜底**:超过重试次数后,使用当前最优结果输出
</Item>
<div class="mt-4 text-sm text-gray-400">
任务生命周期:running → completed / failed
</div>