Skip to content

Commit 59dbbd2

Browse files
Update example-apps/chatbot-rag-app/data/index_data.py
Co-authored-by: Anuraag (Rag) Agrawal <[email protected]>
1 parent dfb165f commit 59dbbd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ def await_ml_tasks(max_timeout=600, interval=5):
171171

172172
while time.time() - start_time < max_timeout:
173173
ml_tasks = get_ml_tasks()
174-
if len(ml_tasks) == 0:
175-
break
174+
if not ml_tasks:
175+
return
176176
time.sleep(interval)
177177

178178
if ml_tasks:

0 commit comments

Comments
 (0)