Skip to content
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

add long polling with exp backoff to wait for async indexing #585

Merged
merged 14 commits into from
Oct 27, 2023

Conversation

tsmith023
Copy link
Contributor

@tsmith023 tsmith023 commented Oct 25, 2023

This PR adds the option to block until all the vectors have been successfully indexed into Weaviate.

It uses long polling with exponential backoff of the /schema/{className}/shards API to check the status of the indexing of each shard until all of them report READY

By default, only those shards that are touched by the import are polled but the user has the freedom to define a list of shards that should be waited for. They can also specify the number of exponential retries in the event of failure

@weaviate-git-bot
Copy link

Great to see you again! Thanks for the contribution.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

@tsmith023 tsmith023 marked this pull request as ready for review October 26, 2023 20:41
@tsmith023 tsmith023 requested a review from a team as a code owner October 26, 2023 20:41
@tsmith023 tsmith023 merged commit d1573a7 into main Oct 27, 2023
24 checks passed
@tsmith023 tsmith023 deleted the add-option-wait-when-batching-with-async branch October 27, 2023 20:48
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.

3 participants