Skip to content

Commit

Permalink
Retry on any error
Browse files Browse the repository at this point in the history
  • Loading branch information
olaughter committed Apr 9, 2024
1 parent f5f743a commit 0c568f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/vespa_.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def _handle_feed_error(response: VespaResponse, id: str):
raise VespaIndexError(f"Indexing Failed on document with id: {id}, body: {response.json}")


@retry(retry=retry_if_exception_type(VespaIndexError), wait=wait_exponential(multiplier=10), stop=stop_after_attempt(10))
@retry(wait=wait_exponential(multiplier=10), stop=stop_after_attempt(10))
def _batch_ingest(vespa: Vespa, to_process: Mapping[SchemaName, list]):
for schema in _SCHEMAS_TO_PROCESS:
documents = to_process[schema]
Expand Down

0 comments on commit 0c568f4

Please sign in to comment.