Skip to content

feat: add ingest retries for 429 and 503 with maxRetries#123

Merged
rmorehig merged 6 commits intomainfrom
feat/ingest-retry-429-headers
Mar 6, 2026
Merged

feat: add ingest retries for 429 and 503 with maxRetries#123
rmorehig merged 6 commits intomainfrom
feat/ingest-retry-429-headers

Conversation

@rmorehig
Copy link
Collaborator

@rmorehig rmorehig commented Mar 6, 2026

Summary

  • add optional ingest retry config in IngestOptions via top-level maxRetries
  • keep HTTP 429 retries header-driven (Retry-After / X-RateLimit-Reset)
  • add HTTP 503 retries using SDK default exponential backoff (internal defaults)
  • apply the same maxRetries cap to both 429 and 503 retries
  • drain retryable response bodies before retrying
  • simplify API by removing nested retry object from ingest options
  • update README examples and unit tests for 429/503 behavior

Validation

  • pnpm typecheck
  • pnpm exec vitest run src/api/api.test.ts

@rmorehig rmorehig changed the title feat: add lean ingest retries for 429 with rate-limit headers feat: add ingest retries for 429 and configurable 503 backoff Mar 6, 2026
@rmorehig rmorehig changed the title feat: add ingest retries for 429 and configurable 503 backoff feat: add ingest retries for 429 and 503 with shared maxRetries Mar 6, 2026
@rmorehig rmorehig changed the title feat: add ingest retries for 429 and 503 with shared maxRetries feat: add ingest retries for 429 and 503 with maxRetries Mar 6, 2026
@rmorehig rmorehig merged commit a54b709 into main Mar 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant