Skip to content

Commit

Permalink
remove --max-requests from flask run, hopefully eliminates missing re…
Browse files Browse the repository at this point in the history
…quests without big memory hit
  • Loading branch information
KastanDay committed Sep 16, 2023
1 parent 8867a51 commit 66b757e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Docs https://docs.gunicorn.org/en/stable/settings.html#workers

export PYTHONPATH=$PYTHONPATH:$(pwd)/ai_ta_backend
exec gunicorn --workers=2 --threads=16 --worker-class=gthread ai_ta_backend.main:app --timeout 1800 --max-requests 20
exec gunicorn --workers=3 --threads=16 --worker-class=gthread ai_ta_backend.main:app --timeout 1800

0 comments on commit 66b757e

Please sign in to comment.