Skip to content

Commit b3441a0

Browse files
good night
Signed-off-by: Adrian Cole <[email protected]>
1 parent c8af42b commit b3441a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example-apps/chatbot-rag-app/data/index_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def main():
139139
if isinstance(e, ApiError) and e.status_code != 408:
140140
raise
141141
warn(f"Error occurred, will retry after ML jobs complete: {e}")
142+
time.sleep(2) # Checking too fast could return no tasks and fail again
142143
await_ml_tasks()
143144
es.indices.delete(index=INDEX, ignore_unavailable=True)
144145
store.add_documents(list(docs))

0 commit comments

Comments
 (0)