soulsync/gunicorn.conf.py
Antti Kettunen bbd736e915 Reduce gunicorn graceful_timeout to speed up app teardown
The app goes through the usual teardown process quite fast on it's own, so keeping the graceful timeout config high only arbitrarily slows things down.
This is especially releavnt in dev mode, since app reloads should feel snappy when changes are made
2026-04-18 19:22:03 +03:00

17 lines
419 B
Python

"""Gunicorn configuration for production deployments."""
bind = "0.0.0.0:8008"
worker_class = "gthread"
workers = 1
threads = 8
# Keep requests from hanging forever on slow external services.
timeout = 120
# Keep shutdowns under Docker's stop window so container restarts stay graceful.
graceful_timeout = 8
# Logging goes to stdout/stderr so Docker can collect it.
accesslog = "-"
errorlog = "-"
loglevel = "info"