Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
release: ./postdeploy.sh
web: bin/start-nginx gunicorn -c config/gunicorn.conf config.wsgi:application
web: DB_STATEMENT_TIMEOUT=25000 bin/start-nginx gunicorn -c config/gunicorn.conf config.wsgi:application
worker: REMAP_SIGTERM=SIGQUIT celery --app=config.celery_app worker --loglevel=info
solr_worker: REMAP_SIGTERM=SIGQUIT celery --app=config.celery_app worker --loglevel=info -Q solr,celery
beat: REMAP_SIGTERM=SIGQUIT celery --app=config.celery_app beat --loglevel=info
beat: REMAP_SIGTERM=SIGQUIT celery --app=config.celery_app beat --loglevel=info
6 changes: 6 additions & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
DATABASES["default"]["ATOMIC_REQUESTS"] = True # noqa F405
DATABASES["default"]["CONN_MAX_AGE"] = env.int("CONN_MAX_AGE", default=60) # noqa F405

# Only the web dyno sets this; workers and migrations need to run long.
if statement_timeout := env.int("DB_STATEMENT_TIMEOUT", default=0):
DATABASES["default"]["OPTIONS"] = { # noqa F405
"options": f"-c statement_timeout={statement_timeout}"
}

# SECURITY
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secure-proxy-ssl-header
Expand Down
Loading