Skip to content

Commit cf8e286

Browse files
committed
DEBUG Redshift: set connectionTimeoutMillis
1 parent d84792b commit cf8e286

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cubejs-postgres-driver/src/PostgresDriver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export class PostgresDriver<Config extends PostgresDriverConfiguration = Postgre
121121

122122
this.pool = new Pool({
123123
idleTimeoutMillis: 30000,
124+
connectionTimeoutMillis: 60000, // 60 seconds for connection timeout
124125
max:
125126
config.maxPoolSize ||
126127
getEnv('dbMaxPoolSize', { dataSource }) ||

0 commit comments

Comments
 (0)