Add health check and retry logic and circuit breaker

This commit is contained in:
SepehrYahyaee
2026-09-28 17:01:53 +03:30
parent 22371f4a03
commit 03fa5e0f20
67 changed files with 3101 additions and 410 deletions
+3 -2
View File
@@ -102,8 +102,9 @@ export class DatabaseSeederService implements OnApplicationBootstrap {
private resolveSeedPath(): string {
const candidates = [
join(__dirname, '..', 'public', this.usersSeedFile),
join(process.cwd(), 'src', 'public', this.usersSeedFile),
join(__dirname, 'seeds', this.usersSeedFile),
join(process.cwd(), 'src', 'database', 'seeds', this.usersSeedFile),
join(process.cwd(), 'dist', 'database', 'seeds', this.usersSeedFile),
];
const seedPath = candidates.find((candidate) => existsSync(candidate));