mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
refactor(core): Increase Postgres connection timeout to 20 seconds (#10705)
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
parent
91d9be2066
commit
ff7354228c
|
@ -77,7 +77,7 @@ class PostgresConfig {
|
|||
|
||||
/** Postgres connection timeout (ms) */
|
||||
@Env('DB_POSTGRESDB_CONNECTION_TIMEOUT')
|
||||
connectionTimeoutMs: number = 1000;
|
||||
connectionTimeoutMs: number = 20_000;
|
||||
|
||||
@Nested
|
||||
ssl: PostgresSSLConfig;
|
||||
|
|
|
@ -47,7 +47,7 @@ describe('GlobalConfig', () => {
|
|||
poolSize: 2,
|
||||
port: 5432,
|
||||
schema: 'public',
|
||||
connectionTimeoutMs: 1000,
|
||||
connectionTimeoutMs: 20_000,
|
||||
ssl: {
|
||||
ca: '',
|
||||
cert: '',
|
||||
|
|
Loading…
Reference in a new issue