-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exponential standoff retry support for handling rate limited embedding functions #614
Conversation
f"Maximum number of retries ({max_retries}) exceeded." | ||
) | ||
|
||
delay *= exponential_base * (1 + jitter * random.random()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Average exponent here will be 2.5, so last delay with 10 retries could easily be hours. How about setting default max_retries
to 7 so max delay is in tens of minutes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great point!
…g functions (lancedb#614) Users ingesting data using rate limited apis don't need to manually make the process sleep for counter rate limits resolves lancedb#579
Users ingesting data using rate limited apis don't need to manually make the process sleep for counter rate limits
resolves #579