From 95f22c268ba9417404ef605a841aab1782d0b259 Mon Sep 17 00:00:00 2001 From: Yandrik Date: Thu, 2 May 2024 08:14:29 +0200 Subject: [PATCH] feat: gunicorn timeout 120s --- gen_service/Dockerfile | 2 +- gen_service/gunicorn_config.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 gen_service/gunicorn_config.py diff --git a/gen_service/Dockerfile b/gen_service/Dockerfile index fd80943..b0b21dc 100644 --- a/gen_service/Dockerfile +++ b/gen_service/Dockerfile @@ -7,4 +7,4 @@ COPY . /app RUN poetry install -ENTRYPOINT ["poetry", "run", "gunicorn", "wsgi:app", "--bind", "0.0.0.0:5000"] \ No newline at end of file +ENTRYPOINT ["poetry", "run", "gunicorn", "-c", "gunicorn_config.py", "wsgi:app", "--bind", "0.0.0.0:5000"] \ No newline at end of file diff --git a/gen_service/gunicorn_config.py b/gen_service/gunicorn_config.py new file mode 100644 index 0000000..7816aa4 --- /dev/null +++ b/gen_service/gunicorn_config.py @@ -0,0 +1 @@ +timeout = 120