Commit Graph

2 Commits

Author SHA1 Message Date
xiaoxia e85626dc69 fix(lipsync): TTS异步任务改用@shared_task,解决Worker侧celery_app不注册任务导致卡tts_processing
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 44s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 44s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 1m10s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 1m17s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m16s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m25s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 1m55s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m58s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m3s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 2m27s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m53s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 6m8s
CI/CD Pipeline / CI Gate (pull_request) Failing after 3s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
AI Code Review / AI Code Review (pull_request) Successful in 6m17s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 3m26s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 134h58m32s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 134h58m35s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 135h4m39s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 135h4m45s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 135h4m14s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 135h4m25s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 135h4m25s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 135h4m32s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 135h4m32s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 135h4m34s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 135h4m13s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 134h58m19s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 134h58m21s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 134h58m21s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 135h4m14s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 135h39m24s
P0: lipsync_tts.py 原从 app.core.celery_app 导入 celery_app 并 @celery_app.task 装饰,
task 被注册到 API 侧 celery_app 实例上,但 Worker 进程使用的是 Worker 侧 celery_app,
导致 Worker 消费消息后找不到处理函数,对口型任务永远卡在 tts_processing 状态。

修复:
1. 改为 @shared_task(name="lipsync_tts.synthesize_and_submit") 装饰器,
   任务自动注册到当前活跃的 celery_app(Worker 启动时会正确注册),
   API 侧 apply_async 调用方式不变。
2. _sign_media_url 保持为模块内独立函数(不依赖 LipsyncService 反射),
   删除函数体开头冗余的 get_shared_storage_service 重复 import,
   仅在 OSS 上传段按需懒导入,保持 task 注册阶段无副作用。
3. 前端 aiAvatar.ts 的 getLipsyncJob 接口加 { timeout: 60000 },
   避免轮询时 10s 默认超时导致前端状态刷新失败。

测试:56 passed,lipsync_tts.py 覆盖率 79%。
2026-09-11 00:17:26 +08:00
xiaoxia f73837c7b4 feat: AI数字人对口型视频生成速度优化 - FFmpeg编码提速 + TTS合成异步化 (#1844)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 2s
CI/CD Pipeline / Check push changed paths (push) Successful in 11s
CI/CD Pipeline / Build Staging API Image (push) Successful in 26s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 28s
CI/CD Pipeline / Build Staging Web Image (push) Successful in 1m21s
CI/CD Pipeline / Integration Tests (push) Successful in 2m3s
CI/CD Pipeline / Validate - Style (push) Successful in 2m44s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 3m33s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 4m15s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 6m40s
CI/CD Pipeline / Unit Tests (push) Successful in 9m28s
CI/CD Pipeline / Validate - Security (push) Successful in 22m56s
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Canary Release to Production (push) Failing after 139h17m40s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 139h17m41s
CI/CD Pipeline / Deploy Production (push) Failing after 139h17m40s
CI/CD Pipeline / Build Production Web Image (push) Failing after 139h17m41s
CI/CD Pipeline / Build Production API Image (push) Failing after 139h17m41s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 139h34m32s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 139h34m34s
CI/CD Pipeline / ACR Image Cleanup (push) Failing after 139h34m32s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 139h38m57s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 139h38m57s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 139h38m58s
CI/CD Pipeline / PR Build Web Image (push) Failing after 139h40m33s
CI/CD Pipeline / PR Build API Image (push) Failing after 139h40m33s
CI/CD Pipeline / Frontend Lint (push) Failing after 139h40m34s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 139h40m40s
CI/CD Pipeline / CI Gate (push) Failing after 139h52m33s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 140h15m26s
2026-09-10 19:43:08 +08:00