Skip to content

Commit

Permalink
DB connection keepalive
Browse files Browse the repository at this point in the history
  • Loading branch information
SupraSummus committed Oct 23, 2024
1 parent 529d919 commit 32feb56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llm_wars/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases

DATABASES = {
'default': env.db('DATABASE_URL'),
'default': {
**env.db('DATABASE_URL'),
'CONN_MAX_AGE': 600, # 10 minutes
},
}


Expand Down

0 comments on commit 32feb56

Please sign in to comment.