fix(lipsync-tts): 修正 celery_app 导入路径,修复 staging api 启动阻断 #1848

Merged
xiaoxia merged 1 commits from fix/lipsync-tts-celery-import into develop 2026-09-10 21:19:41 +08:00
Owner

问题

apps/api/app/tasks/lipsync_tts.py 第 18 行导入路径错误:

from apps.worker.worker_app.celery_app import celery_app

该路径在 api 服务镜像内不存在(worker_app 属于 worker 服务),导致 api 容器启动即 ImportError,staging 部署回滚阻断。

修复

参考同目录 ai_avatar_render.py 的写法:

from app.core.celery_app import celery_app

验证

  • docker build -f infra/docker/api.Dockerfile . 构建成功
  • 容器内 import app.tasks.lipsync_tts 导入正常,Celery 实例与任务 lipsync_tts.synthesize_and_submit 注册正常
## 问题 `apps/api/app/tasks/lipsync_tts.py` 第 18 行导入路径错误: ```python from apps.worker.worker_app.celery_app import celery_app ``` 该路径在 api 服务镜像内不存在(worker_app 属于 worker 服务),导致 api 容器启动即 ImportError,**staging 部署回滚阻断**。 ## 修复 参考同目录 `ai_avatar_render.py` 的写法: ```python from app.core.celery_app import celery_app ``` ## 验证 - `docker build -f infra/docker/api.Dockerfile .` 构建成功 - 容器内 `import app.tasks.lipsync_tts` 导入正常,Celery 实例与任务 `lipsync_tts.synthesize_and_submit` 注册正常
xiaoxia added 1 commit 2026-09-10 20:47:48 +08:00
fix(lipsync-tts): 修正 celery_app 导入路径
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
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 38s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 39s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m59s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 2m20s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 2m56s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m0s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 4m51s
AI Code Review / AI Code Review (pull_request) Successful in 6m42s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 9m36s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 11m19s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 24m53s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Successful in 4s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 33s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 1m59s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 138h11m2s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 138h35m53s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 138h35m58s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 138h35m58s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 138h36m3s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 138h35m50s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 138h35m50s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 138h10m52s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 138h10m52s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 138h35m34s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 138h35m34s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 138h35m46s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 138h35m46s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 138h35m46s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 138h10m49s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 138h10m52s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 138h35m36s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 138h35m46s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 138h35m52s
441735d019
apps.worker.worker_app.celery_app 在 api 服务镜像内不存在,
参考同目录 ai_avatar_render.py 改为 app.core.celery_app。
修复 staging 部署后 api 容器启动失败(ImportError)。

🚀 预览环境已部署

项目 详情
PR号 #1848
预览链接 https://pr-1848.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #1848 | | 预览链接 | [https://pr-1848.preview.xiaoxiajianji.com](https://pr-1848.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
xiaoxia merged commit 9ea014c39b into develop 2026-09-10 21:19:41 +08:00
xiaoxia deleted branch fix/lipsync-tts-celery-import 2026-09-10 21:19:42 +08:00

🗑️ 预览环境已清理

PR #1848 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #1848 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Sign in to join this conversation.