Zendesk Retries (#3558)

* k

* k

* k

* k
This commit is contained in:
Yuhong Sun
2024-12-28 15:51:49 -08:00
committed by GitHub
parent 2203cfabea
commit fc81a3fb12
3 changed files with 12 additions and 3 deletions

View File

@@ -216,7 +216,7 @@ def seed_initial_documents(
# Retries here because the index may take a few seconds to become ready
# as we just sent over the Vespa schema and there is a slight delay
index_with_retries = retry_builder()(document_index.index)
index_with_retries = retry_builder(tries=15)(document_index.index)
index_with_retries(chunks=chunks, fresh_index=cohere_enabled)
# Mock a run for the UI even though it did not actually call out to anything