Skip to content

Retry on 429s and equivalents #309

@ozzieba

Description

@ozzieba

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
We are trying to do bulk ingestion on a LanceDB table in GCS, and hitting 429 "TooManyRequests" errors, which are not being retried.

Describe the solution you'd like
I'd like 429 responses to always generate a retry with truncated exponential backoff.

Describe alternatives you've considered
This could theoretically be handled by users of this library like LanceDB or even application code. But it seems to me that the best place to address is here.

Additional context
GCS guidance:

You should retry your requests with exponential backoff when:

  • Receiving errors with 408 and 429 response codes.
  • Receiving errors with 5xx response codes.

In AWS this is a 503 with SlowDown as the reason: https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimizing-performance.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions