Skip to content

Commit

Permalink
Update example-apps/chatbot-rag-app/data/index_data.py
Browse files Browse the repository at this point in the history
Co-authored-by: Anuraag (Rag) Agrawal <[email protected]>
  • Loading branch information
codefromthecrypt and anuraaga authored Feb 20, 2025
1 parent dfb165f commit 59dbbd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example-apps/chatbot-rag-app/data/index_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ def await_ml_tasks(max_timeout=600, interval=5):

while time.time() - start_time < max_timeout:
ml_tasks = get_ml_tasks()
if len(ml_tasks) == 0:
break
if not ml_tasks:
return
time.sleep(interval)

if ml_tasks:
Expand Down

0 comments on commit 59dbbd2

Please sign in to comment.