Skip to content

Commit

Permalink
Weaviate: Add retry (#32038)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Reuter authored Nov 2, 2023
1 parent 1e74904 commit 402ac60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def _create_client(self):
self.client = weaviate.Client(url=self.config.host, additional_headers=headers)

# disable dynamic batching because it's handled asynchroniously in the client
self.client.batch.configure(batch_size=None, dynamic=False)
self.client.batch.configure(
batch_size=None, dynamic=False, weaviate_error_retries=weaviate.WeaviateErrorRetryConf(number_retries=5)
)

def check(self) -> Optional[str]:
deployment_mode = os.environ.get("DEPLOYMENT_MODE", "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data:
connectorSubtype: vectorstore
connectorType: destination
definitionId: 7b7d7a0d-954c-45a0-bcfc-39a634b97736
dockerImageTag: 0.2.5
dockerImageTag: 0.2.6
dockerRepository: airbyte/destination-weaviate
documentationUrl: https://docs.airbyte.com/integrations/destinations/weaviate
githubIssueLabel: destination-weaviate
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/destinations/weaviate.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ As properties have to start will a lowercase letter in Weaviate, field names mig

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :--------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------- |
| 0.2.6 | 2023-11-01 | [#32038](https://github.com/airbytehq/airbyte/pull/32038) | Retry failed object loads |
| 0.2.5 | 2023-10-24 | [#31953](https://github.com/airbytehq/airbyte/pull/31953) | Fix memory leak |
| 0.2.4 | 2023-10-23 | [#31563](https://github.com/airbytehq/airbyte/pull/31563) | Add field mapping option, improve append+dedupe sync performance and remove unnecessary retry logic |
| 0.2.3 | 2023-10-19 | [#31599](https://github.com/airbytehq/airbyte/pull/31599) | Base image migration: remove Dockerfile and use the python-connector-base image |
Expand Down

0 comments on commit 402ac60

Please sign in to comment.