fix(prod): rename gunicorn config so auto-discovery loads timeout=120#24
Merged
Merged
Conversation
Render's start command does not pass -c, so gunicorn auto-discovery is the only way the config file is loaded. Auto-discovery only matches gunicorn.conf.py (with a dot), not gunicorn_config.py — so the timeout=120 setting added in #20 was a no-op and /answer continued to SIGKILL at the default 30s. Rename the file to make discovery actually find it.
✅ Deploy Preview for mini-perplexity canceled.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Render's start command (
gunicorn -w 4 -k uvicorn.workers.UvicornWorker app.main:app) does not pass-c, so the only way the worker timeout is loaded is via gunicorn's config auto-discovery. Auto-discovery looks forgunicorn.conf.py(with a dot), notgunicorn_config.py(with an underscore) — so thetimeout = 120setting added in #20 was effectively a no-op and/answercontinued to SIGKILL at the default 30s on long-formgpt-oss-120b/qwq-32bgenerations.Rename to
gunicorn.conf.pyso discovery picks it up on Render's next deploy. No dashboard change needed.Test plan
git mvpreserves file content (rename detected as 100%)/answerrequest to a reasoning model completes past 30s withoutWORKER TIMEOUT