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
+1
View File
@@ -14,6 +14,7 @@ describe('provider resilience helpers', () => {
it('retries transport failures but not 429 or business rejects', () => {
expect(isTransportRetryable({ code: 'ETIMEDOUT' })).toBe(true);
expect(isTransportRetryable({ response: { status: 503 } })).toBe(true);
expect(isTransportRetryable({ response: { status: 404 } })).toBe(true);
expect(isTransportRetryable({ response: { status: 429 } })).toBe(false);
expect(
isTransportRetryable({