mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -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) */
|
/** Postgres connection timeout (ms) */
|
||||||
@Env('DB_POSTGRESDB_CONNECTION_TIMEOUT')
|
@Env('DB_POSTGRESDB_CONNECTION_TIMEOUT')
|
||||||
connectionTimeoutMs: number = 1000;
|
connectionTimeoutMs: number = 20_000;
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
ssl: PostgresSSLConfig;
|
ssl: PostgresSSLConfig;
|
||||||
|
|
|
@ -47,7 +47,7 @@ describe('GlobalConfig', () => {
|
||||||
poolSize: 2,
|
poolSize: 2,
|
||||||
port: 5432,
|
port: 5432,
|
||||||
schema: 'public',
|
schema: 'public',
|
||||||
connectionTimeoutMs: 1000,
|
connectionTimeoutMs: 20_000,
|
||||||
ssl: {
|
ssl: {
|
||||||
ca: '',
|
ca: '',
|
||||||
cert: '',
|
cert: '',
|
||||||
|
|
Loading…
Reference in a new issue