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:
Iván Ovejero 2024-09-06 11:07:03 +02:00 committed by GitHub
parent 91d9be2066
commit ff7354228c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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: '',