From 8d77299b34e37daf79fae4ab3d19487b09572e27 Mon Sep 17 00:00:00 2001 From: krek0 Date: Sat, 16 May 2026 15:43:19 +0200 Subject: [PATCH] Fix gunicorn worker timeout on large file uploads by switching to gevent async workers --- entrypoint.sh | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8638676..51340a0 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,4 +5,4 @@ python manage.py collectstatic --noinput python manage.py migrate --noinput python manage.py loaddata initial python manage.py create_default_admin -exec gunicorn photo21.wsgi:application --bind 0.0.0.0:8000 --workers 3 +exec gunicorn photo21.wsgi:application --bind 0.0.0.0:8000 --workers 3 --worker-class gevent diff --git a/requirements.txt b/requirements.txt index 9b4b068..62649a4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,5 @@ whitenoise>=6.0 psycopg2-binary>=2.9 requests>=2.25 gunicorn>=21.0 +gevent>=23.9 av>=12.0