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
+10
View File
@@ -0,0 +1,10 @@
import { HealthService } from '../../src/health/health.service';
describe('HealthService', () => {
it('provides safe defaults for memory and disk health checks', () => {
const service = new HealthService();
expect(service.heapThresholdBytes()).toBe(512 * 1024 * 1024);
expect(service.diskThresholdPercent()).toBe(0.9);
expect(service.diskPath()).toBe('/');
});
});