From 5aaccf29a152f823a6eaf0835cf73d7581ac35b7 Mon Sep 17 00:00:00 2001 From: Renat Gofman Date: Fri, 9 Aug 2024 16:38:29 +0300 Subject: [PATCH] fix envs --- docker/web/celery/worker/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/web/celery/worker/run.sh b/docker/web/celery/worker/run.sh index 3be8ab74..2df9e2cb 100755 --- a/docker/web/celery/worker/run.sh +++ b/docker/web/celery/worker/run.sh @@ -2,7 +2,9 @@ set -euo pipefail -TASK_CONCURRENCY=${CELERYD_CONCURRENCY:-15000} +MAX_MEMORY_PER_CHILD="${WORKER_MAX_MEMORY_PER_CHILD:-2097152}" +MAX_TASKS_PER_CHILD="${MAX_TASKS_PER_CHILD:-1000000}" +TASK_CONCURRENCY="${CELERYD_CONCURRENCY:-1000}" # DEBUG set in .env_docker_compose if [ ${DEBUG:-0} = 1 ]; then