Skip to content

Commit 6c3af7f

Browse files
committed
add env var for setting number of threads in api-server celery worker
1 parent 2589946 commit 6c3af7f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.env-devel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ AGENT_VOLUMES_CLEANUP_S3_REGION=us-east-1
1919
AGENT_VOLUMES_CLEANUP_S3_SECRET_KEY=12345678
2020
AGENT_TRACING={}
2121

22+
API_SERVER_CELERY_CONCURRENCY=50
2223
API_SERVER_DEV_FEATURES_ENABLED=0
2324
API_SERVER_LOGLEVEL=INFO
2425
API_SERVER_PROFILING=1

services/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ services:
9494
<<: *api_server_environment
9595
API_SERVER_WORKER_NAME: "api-worker-{{.Node.Hostname}}-{{.Task.Slot}}-{{.Task.ID}}"
9696
API_SERVER_WORKER_MODE: "true"
97-
CELERY_CONCURRENCY: 100
97+
CELERY_CONCURRENCY: ${API_SERVER_CELERY_CONCURRENCY}
9898
CELERY_QUEUES: "api_worker_queue"
9999
networks: *api_server_networks
100100

0 commit comments

Comments
 (0)