From dbabe734bc54ad1f39dc9bc2fb2dfd31c1564bc1 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Thu, 21 May 2026 18:44:21 -0700 Subject: [PATCH] Fix django-debug-toolbar by reducing worker count Debug toolbar has been pretty useless for a long time now, all pages in the toolbar mostly show failures and only work a small portion of the time. Reducing the worker count resolves this behavior and allows all pages to function. There might be a longer term fix here, the problem is likely the workers not sharing some state that debug toolbar is expecting. --- dockerfiles/entrypoints/web.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockerfiles/entrypoints/web.sh b/dockerfiles/entrypoints/web.sh index 11e299b..b72487f 100755 --- a/dockerfiles/entrypoints/web.sh +++ b/dockerfiles/entrypoints/web.sh @@ -13,7 +13,7 @@ then uv run python3 manage.py loaddata test_data fi -CMD="uv run gunicorn readthedocs.wsgi:application -w 3 -b 0.0.0.0:8000 --max-requests=10000 --timeout=0" +CMD="uv run gunicorn readthedocs.wsgi:application -w 1 -b 0.0.0.0:8000 --max-requests=10000 --timeout=0" if [ -n "${DOCKER_NO_RELOAD}" ]; then echo "Running process with no reload"