Skip to content

Commit

Permalink
Merge pull request #1976 from ResearchHub/max-conn-age-beanstalk
Browse files Browse the repository at this point in the history
Use persistent database connection for all Beanstalk environments
  • Loading branch information
gzurowski authored Nov 8, 2024
2 parents 231153e + ad7d0ca commit 1a0ea8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/researchhub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def silky_capture(request):

# Persistent database connections.
# See: https://docs.djangoproject.com/en/4.2/ref/databases/#persistent-database-connections
if STAGING:
if ELASTIC_BEANSTALK:
DATABASES["default"]["MAX_CONN_AGE"] = 180

# Password validation
Expand Down

0 comments on commit 1a0ea8e

Please sign in to comment.