Add database connection timeout option to settings
All checks were successful
Deploy to Server / deploy (push) Successful in 9s
All checks were successful
Deploy to Server / deploy (push) Successful in 9s
This commit is contained in:
parent
5e8b4abe2b
commit
4d53a46850
1 changed files with 3 additions and 0 deletions
|
|
@ -196,6 +196,9 @@ DATABASES: dict[str, dict[str, Any]] = (
|
|||
"PORT": env_int("POSTGRES_PORT", 5432),
|
||||
"CONN_MAX_AGE": env_int("CONN_MAX_AGE", 60),
|
||||
"CONN_HEALTH_CHECKS": env_bool("CONN_HEALTH_CHECKS", default=True),
|
||||
"OPTIONS": {
|
||||
"connect_timeout": env_int("DB_CONNECT_TIMEOUT", 10),
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue