From 891a6cb93126251b762694e5c87bdd558056829a Mon Sep 17 00:00:00 2001 From: Elia Palme Date: Thu, 19 Dec 2024 14:47:37 +0100 Subject: [PATCH] allow multi worker tasks --- deploy/docker/tasks/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy/docker/tasks/Dockerfile b/deploy/docker/tasks/Dockerfile index 47b444ae..87accff7 100644 --- a/deploy/docker/tasks/Dockerfile +++ b/deploy/docker/tasks/Dockerfile @@ -27,7 +27,6 @@ ENV F7T_SSL_KEY /ssl/f7t_internal.key ENV F7T_GUNICORN_LOG --error-logfile ${F7T_LOG_PATH}/tasks.gunicorn.log ENV F7T_GUNICORN_SSL --ciphers TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256,TLS_AES_128_GCM_SHA256,DHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES128-GCM-SHA256 \ --ssl-version TLSv1_2 --keyfile $F7T_SSL_KEY --certfile $F7T_SSL_CRT +ENV F7T_GUNICORN_WORKER --workers=1 --threads=1 -# Note: The tasks microservice stores all live tasks in-memmory. -# The code is not thread safe, hence workers are enforced to 1 -ENTRYPOINT /usr/local/bin/gunicorn ${F7T_GUNICORN_SSL} --workers=1 --threads=1 --bind :${F7T_TASKS_PORT} ${F7T_GUNICORN_LOG} ${F7T_GUNICORN_LOG} tasks:app +ENTRYPOINT /usr/local/bin/gunicorn ${F7T_GUNICORN_SSL} ${F7T_GUNICORN_WORKER} --bind :${F7T_TASKS_PORT} ${F7T_GUNICORN_LOG} ${F7T_GUNICORN_LOG} tasks:app