Skip to content

Commit

Permalink
fix: increase the gunicorn timeout to 40 seconds
Browse files Browse the repository at this point in the history
For some reason, when we keep the default of 30 seconds, request get
killed after 20-25s. Not sure why, but --timeout=40 fixes the problem.
We still never reach 30seconds, because we now have a 25s budget on the
g2p conversion, which is the most expensive step.
  • Loading branch information
joanise committed Feb 24, 2025
1 parent caeae24 commit 8b1d7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Command for launching the web API server for ReadAlongs-Studio on Heroku
web: gunicorn --workers 5 --worker-class uvicorn.workers.UvicornWorker readalongs.web_api:web_api_app
web: gunicorn --workers 5 --worker-class uvicorn.workers.UvicornWorker --timeout 40 readalongs.web_api:web_api_app

0 comments on commit 8b1d7f8

Please sign in to comment.