Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inrease gunicorn timeout #1864

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker/bin/start-api
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ readonly GUNICORN='/venv/bin/gunicorn'
readonly GUNICORN_FORWARDED_ALLOW_IPS="${GUNICORN_FORWARDED_ALLOW_IPS:-}"
readonly GUNICORN_WORKERS="${GUNICORN_WORKERS:-4}"
readonly GUNICORN_LOGGER_CLASS="${GUNICORN_LOGGER_CLASS:-}"
readonly GUNICORN_TIMEOUT="${GUNICORN_TIMEOUT:-60}"

readonly BIND_HOST='0.0.0.0'
readonly BIND_PORT=${GUNICORN_PORT:-8000}
Expand All @@ -19,6 +20,7 @@ GUNICORN_OPTIONS=(
--workers "${GUNICORN_WORKERS}"
--access-logfile -
--limit-request-field_size 32768
--timeout "${GUNICORN_TIMEOUT}"
)

if [[ -n "${GUNICORN_FORWARDED_ALLOW_IPS}" ]]; then
Expand Down
Loading