Skip to content

Commit 525d5a8

Browse files
jsb2092claude
andcommitted
Fix: increase Gunicorn timeout to 120s for AI generation
The Claude API can take 30+ seconds for generating many questions, which was exceeding the default 30s Gunicorn worker timeout. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 37b4228 commit 525d5a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

questionbank/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ EXPOSE 8080
3939
HEALTHCHECK --interval=30s --timeout=30s --start-period=120s --retries=3 \
4040
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/health/')" || exit 1
4141

42-
# Run migrations and gunicorn
43-
CMD python manage.py migrate --noinput && gunicorn config.wsgi:application --bind 0.0.0.0:$PORT
42+
# Run migrations and gunicorn (timeout 120s for AI generation requests)
43+
CMD python manage.py migrate --noinput && gunicorn config.wsgi:application --bind 0.0.0.0:$PORT --timeout 120

0 commit comments

Comments
 (0)