Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
feat: default the image to threaded gunicorn workers (3x8) so streaming responses no longer pin one of three request slots and a few concurrent streams cannot stall the whole app (#374)
Murtaza Nasir2fdee3202574
diff --git a/Dockerfile b/Dockerfileindex 0766efcf..8a3f6565 100644--- a/Dockerfile+++ b/Dockerfile@@ -103,4 +103,9 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.shEXPOSE 8899ENTRYPOINT ["docker-entrypoint.sh"]-CMD ["gunicorn", "--workers", "3", "--bind", "0.0.0.0:8899", "--timeout", "600", "src.app:app"]+# Threaded workers: streaming responses (chat/Inquire SSE, audio/video range+# requests) hold a request slot for their duration; with sync workers 3 such+# streams made the whole app unresponsive (#374). gthread gives 3x8 = 24+# concurrent requests; the app is thread-tolerant (background job threads,+# SQLite WAL) and streams are I/O-bound.+CMD ["gunicorn", "--workers", "3", "--worker-class", "gthread", "--threads", "8", "--bind", "0.0.0.0:8899", "--timeout", "600", "src.app:app"]