Files
slide/decks/gen2D/pages/async-task.md
T
wonder 67ee76e58d
Deploy Slides / build-and-deploy (push) Successful in 1m8s
feat: expand gen2D deck with deep technical slides and interactive elements
- Add 5 new slide pages: eino-deep-dive, ratelimit-overview, ratelimit-lua, async-deep-dive, harness
- Add 4 new drawio SVGs: pipeline-detail, ratelimit, async-task, harness
- Update all existing slides with v-clicks progressive reveal
- Add presenter notes and interactive prompts
- Expand slides.md to register all new pages (16 → 25+ slides)
- Fix text overflow by trimming content per Item block
- Add Eino Graph deep dive: WithGenLocalState, Pre/Post Handler, branch routing
- Add rate limiting section: algorithm comparison, Lua script, Gin middleware
- Add async task deep dive: TaskQueue FIFO, context progress injection
- Add consistency section: style/pipeline/data/deployment 4-layer guarantees
2026-05-30 22:42:23 +08:00

706 B
Raw Blame History

异步任务模型

提交即返回,后台并发执行

  1. 提交请求 → 创建 Task(running)→ 立即返回 taskId
  2. 前端轮询 / WebSocket 获取进度
  3. 后台 goroutine 执行管线,完成后上传素材
阶段 进度 说明
PromptOptimizer 5→25% 风格合并 + LLM 优化
AssetGenerator 25→60% 调用文生图 API
QualitySupervisor 60→80% 视觉模型质检
FormatAdapter 80→100% 格式组装 + 上传

质检重试最多 3 次,任务级重试 1 次,超限降级输出。