Celery Worker Fix Agent
|
8210806632
|
fix: 修复 Celery Worker 任务注册和导入问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
1. 修复 Worker 启动入口: celery_app → worker_app.celery_app
- 旧 celery_app.py 不导入任何任务模块,导致 Worker 注册 0 个任务
- 删除旧版 apps/worker/celery_app.py,统一使用 worker_app/celery_app.py
2. 为缺少装饰器的任务补充 @celery_app.task:
- classification.py: classify_asset() 添加装饰器
- generation.py: generate_video() 添加装饰器,修正签名匹配 API 调用方式
3. 确保 voice_extraction 任务被正确注册:
- 添加 voice_extraction 到 celery_app imports
- 修复 voice_extraction.py 中错误的相对导入 (.celery_app → worker_app.celery_app)
- 修复 dedup.py 中指向已删除模块的导入
4. 修复 worker_app/celery_app.py:
- 添加 broker_connection_retry_on_startup=True
- imports 中添加 voice_extraction 和 dedup 模块
5. 修复 Dockerfile:
- CMD 改为 celery -A worker_app.celery_app
- 添加非 root 用户 celery 运行 Worker
6. 新建 packages/shared/config.py 和 storage.py 兼容层
- 为 worker 任务模块提供统一的 config/storage 访问入口
|
2026-06-27 19:31:07 +08:00 |
|
xiaoxia
|
299f42a6aa
|
feat: 实现四种视频剪辑模式 (#23)
|
2026-06-26 20:58:26 +08:00 |
|
Xiaoxia AI
|
6e8394d749
|
style: sort Python imports for CI
|
2026-06-24 19:57:19 +08:00 |
|
Xiaoxia AI
|
f85e389ced
|
style: format Python files for CI
|
2026-06-24 19:54:36 +08:00 |
|
Xiaoxia AI
|
0f59b412bc
|
feat(plans): add edit plan preview workflow
|
2026-06-24 10:10:25 +08:00 |
|
Xiaoxia AI
|
8acbd6c8a7
|
feat(results): add generated video management
|
2026-06-24 06:28:06 +08:00 |
|
Xiaoxia AI
|
17021c351f
|
feat(titles): complete title selection workflow
|
2026-06-24 00:55:00 +08:00 |
|
Xiaoxia AI
|
f2a9b0868b
|
feat(assets): track generation usage review state
|
2026-06-23 21:52:47 +08:00 |
|
Xiaoxia AI
|
ea92092d12
|
chore(security): triage bandit findings
|
2026-06-21 13:38:46 +08:00 |
|
Xiaoxia AI
|
bfbaddbd9a
|
style: normalize python formatting gates
|
2026-06-21 06:52:19 +08:00 |
|
Xiaoxia AI
|
1e3a52fa17
|
fix(worker): persist generated mp4 without oss
|
2026-06-20 23:17:52 +08:00 |
|
Xiaoxia AI
|
3afe9689f7
|
feat(worker): generate real mp4 outputs
|
2026-06-20 22:42:07 +08:00 |
|
Xiaoxia AI
|
48fbe3d287
|
fix(worker): register generation task
|
2026-06-20 19:43:08 +08:00 |
|