perf: Add celery worker count config

This commit is contained in:
wangruidong
2025-06-09 10:41:21 +08:00
committed by 老广
parent caf23f5b05
commit d179ce1cd4
6 changed files with 9 additions and 4 deletions

View File

@@ -25,3 +25,4 @@ BASE_DIR = os.path.dirname(settings.BASE_DIR)
LOG_DIR = os.path.join(BASE_DIR, 'data', 'logs')
APPS_DIR = os.path.join(BASE_DIR, 'apps')
TMP_DIR = os.path.join(BASE_DIR, 'tmp')
CELERY_WORKER_COUNT = CONFIG.CELERY_WORKER_COUNT or 10