Skip to content

Commit

Permalink
increase db timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizitto committed Sep 22, 2023
1 parent e187db4 commit c6deb41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/health-check/health-check.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
]);
}
}

0 comments on commit c6deb41

Please sign in to comment.