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
pull/315/head
Antti Kettunen 2 months ago
parent 832bb07787
commit bbd736e915

@ -8,6 +8,9 @@ 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 = "-"

@ -9,6 +9,9 @@ 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 = "-"

Loading…
Cancel
Save