Skip to content

Commit

Permalink
Configure timeouts for postgres connections in api (CrowdDotDev#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
sausage-todd authored Oct 17, 2023
1 parent 859a6be commit e8a7556
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/database/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ function models() {
dialect: DB_CONFIG.dialect,
dialectOptions: {
application_name: SERVICE,
connectionTimeoutMillis: 5000,
query_timeout: 30000,
idle_in_transaction_session_timeout: 10000,
},
port: DB_CONFIG.port,
replication: {
Expand Down

0 comments on commit e8a7556

Please sign in to comment.