feat: increase default celery worker concurrency to 4 (#33105)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Weichen Zhao
2026-03-31 10:17:47 +08:00
committed by GitHub
parent 01c857a67a
commit 7e4754392d
2 changed files with 5 additions and 3 deletions

View File

@@ -186,8 +186,10 @@ CELERY_WORKER_CLASS=
# it is recommended to set it to 360 to support a longer sse connection time.
GUNICORN_TIMEOUT=360
# The number of Celery workers. The default is 1, and can be set as needed.
CELERY_WORKER_AMOUNT=
# The number of Celery workers. The default is 4 for development environments
# to allow parallel processing of workflows, document indexing, and other async tasks.
# Adjust based on your system resources and workload requirements.
CELERY_WORKER_AMOUNT=4
# Flag indicating whether to enable autoscaling of Celery workers.
#

View File

@@ -46,7 +46,7 @@ x-shared-env: &shared-api-worker-env
SERVER_WORKER_CONNECTIONS: ${SERVER_WORKER_CONNECTIONS:-10}
CELERY_WORKER_CLASS: ${CELERY_WORKER_CLASS:-}
GUNICORN_TIMEOUT: ${GUNICORN_TIMEOUT:-360}
CELERY_WORKER_AMOUNT: ${CELERY_WORKER_AMOUNT:-}
CELERY_WORKER_AMOUNT: ${CELERY_WORKER_AMOUNT:-4}
CELERY_AUTO_SCALE: ${CELERY_AUTO_SCALE:-false}
CELERY_MAX_WORKERS: ${CELERY_MAX_WORKERS:-}
CELERY_MIN_WORKERS: ${CELERY_MIN_WORKERS:-}