1
This commit is contained in:
+4
-3
@@ -398,7 +398,8 @@ async def _cleanup_urls(): # 实际逻辑写在 async 函数
|
||||
| `gen_shot_split` | 拆镜切片 | 1-2 |
|
||||
| `gen_api_create` | API v3 视频任务创建 | 2-4 |
|
||||
| `gen_api_poll` | API v3 视频状态轮询 | 2-4 |
|
||||
| `gen_api_download` | API v3 视频下载与超分 | 2-4 |
|
||||
| `gen_api_download` | API v3 视频下载 | 2-4 |
|
||||
| `gen_api_upscale` | API v3 超分 | 2-4 |
|
||||
| `default` | 默认队列(用户 OAuth、清理任务等) | 1-2 |
|
||||
|
||||
#### 完整启动命令
|
||||
@@ -406,7 +407,7 @@ async def _cleanup_urls(): # 实际逻辑写在 async 函数
|
||||
```bash
|
||||
# ── 单机部署(所有队列一个 Worker)──
|
||||
celery -A app.tasks.celery_app worker -l info \
|
||||
-Q gen_chatapi_create,gen_provider_poll,gen_result_download,gen_video_upscale_local,gen_video_upscale_remote,gen_recovery,gen_private_portrait,gen_shot_analysis,gen_shot_split,gen_api_create,gen_api_poll,gen_api_download,default \
|
||||
-Q gen_chatapi_create,gen_provider_poll,gen_result_download,gen_video_upscale_local,gen_video_upscale_remote,gen_recovery,gen_private_portrait,gen_shot_analysis,gen_shot_split,gen_api_create,gen_api_poll,gen_api_download,gen_api_upscale,default \
|
||||
--concurrency=4
|
||||
|
||||
# ── 生产环境(按功能分离 Worker)──
|
||||
@@ -418,7 +419,7 @@ celery -A app.tasks.celery_app worker -l info \
|
||||
|
||||
# 超分 Worker
|
||||
celery -A app.tasks.celery_app worker -l info \
|
||||
-Q gen_video_upscale_local,gen_video_upscale_remote \
|
||||
-Q gen_video_upscale_local,gen_video_upscale_remote,gen_api_upscale \
|
||||
--concurrency=2 -n worker_upscale@%h
|
||||
|
||||
# 恢复 Worker
|
||||
|
||||
Reference in New Issue
Block a user