From c6deb41f13f21e81f91557b6b2fd817a5300cfda Mon Sep 17 00:00:00 2001 From: Viktor Parahonya Date: Fri, 22 Sep 2023 10:59:52 +0300 Subject: [PATCH] increase db timeout --- packages/core/src/health-check/health-check.module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/health-check/health-check.module.ts b/packages/core/src/health-check/health-check.module.ts index 71f03da0c4..a8174a240e 100644 --- a/packages/core/src/health-check/health-check.module.ts +++ b/packages/core/src/health-check/health-check.module.ts @@ -20,6 +20,8 @@ export class HealthCheckModule { private typeOrm: TypeOrmHealthIndicator, ) { // Register the default health checks for database and worker - this.healthCheckRegistryService.registerIndicatorFunction([() => this.typeOrm.pingCheck('database')]); + this.healthCheckRegistryService.registerIndicatorFunction([ + () => this.typeOrm.pingCheck('database', { timeout: 3000 }), + ]); } }