soulsync/gunicorn.dev.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

18 lines
415 B
Python

"""Gunicorn configuration for local development."""
bind = "127.0.0.1:8008"
worker_class = "gthread"
workers = 1
threads = 4
reload = True
# Keep requests from hanging forever on slow external services.
timeout = 120
# Don't let local reloads wait too long for shutdown.
graceful_timeout = 1
# Logging goes to stdout/stderr so the shell launcher can collect it.
accesslog = "-"
errorlog = "-"
loglevel = "info"