优化架构K8s 副本和队列

This commit is contained in:
Azmat@qq.com
2026-09-03 16:38:02 +08:00
parent f53b6e1035
commit e7122b78fb
9 changed files with 80 additions and 10 deletions
+8
View File
@@ -204,6 +204,14 @@ CELERY_TASK_ACKS_LATE = True
CELERY_TASK_REJECT_ON_WORKER_LOST = True
CELERY_WORKER_PREFETCH_MULTIPLIER = 1
CELERY_TIMEZONE = TIME_ZONE
# 快活走 airshelf.quick(独立 worker-quick Pod);出图/出片仍默认 celery 队列。
CELERY_TASK_ROUTES = {
"apps.ai.tasks.extract_entities_task": {"queue": "airshelf.quick"},
"apps.ai.tasks.poll_free_video_task": {"queue": "airshelf.quick"},
"apps.ai.tasks.drain_asset_reviews_task": {"queue": "airshelf.quick"},
"apps.ops.tasks.ensure_team_notifications_task": {"queue": "airshelf.quick"},
"apps.projects.tasks.run_quick_script_task": {"queue": "airshelf.quick"},
}
REDIS_LOCK_URL = env("REDIS_LOCK_URL", "redis://127.0.0.1:6379/3")