From d916b868befdf40289fc1cf70ee75f77d6a1c352 Mon Sep 17 00:00:00 2001
From: Tim Kreuzer <t.kreuzer@fz-juelich.de>
Date: Tue, 7 May 2024 17:11:10 +0200
Subject: [PATCH] Changelog: fixed - Default number of processes reduced to 1,
 to prevent memory-sqlite errors

---
 project/gunicorn_http.py  | 2 +-
 project/gunicorn_https.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/project/gunicorn_http.py b/project/gunicorn_http.py
index 16f7d83..3c595c2 100644
--- a/project/gunicorn_http.py
+++ b/project/gunicorn_http.py
@@ -73,7 +73,7 @@ preload_app = True
 #       A positive integer. Generally set in the 1-5 seconds range.
 #
 
-workers = int(os.environ.get("GUNICORN_PROCESSES", 4))
+workers = int(os.environ.get("GUNICORN_PROCESSES", 1))
 threads = int(os.environ.get("GUNICORN_THREADS", 25))
 worker_class = "uvicorn.workers.UvicornWorker"
 # worker_connections = 1000
diff --git a/project/gunicorn_https.py b/project/gunicorn_https.py
index e48f9e2..4688807 100644
--- a/project/gunicorn_https.py
+++ b/project/gunicorn_https.py
@@ -75,7 +75,7 @@ preload_app = True
 #       A positive integer. Generally set in the 1-5 seconds range.
 #
 
-workers = int(os.environ.get("GUNICORN_PROCESSES", 4))
+workers = int(os.environ.get("GUNICORN_PROCESSES", 1))
 threads = int(os.environ.get("GUNICORN_THREADS", 25))
 worker_class = "uvicorn.workers.UvicornWorker"
 # worker_connections = 1000
-- 
GitLab