imbajin commented on code in PR #141:
URL: 
https://github.com/apache/incubator-hugegraph-ai/pull/141#discussion_r1896466019


##########
hugegraph-llm/src/hugegraph_llm/demo/rag_demo/app.py:
##########
@@ -55,6 +57,35 @@ def authenticate(credentials: HTTPAuthorizationCredentials = 
Depends(sec)):
             headers={"WWW-Authenticate": "Bearer"},
         )
 
+async def schedule_fit_vid_index():
+    try:
+        while True:
+            log.info("Executing fit_vid_index function...")
+            try:
+                await asyncio.to_thread(fit_vid_index)
+                log.info("fit_vid_index function executed successfully.")
+            except Exception as e:
+                log.error("Error executing fit_vid_index: %s", e, 
exc_info=True)
+                raise Exception("Error executing fit_vid_index") from e

Review Comment:
   duplicate try-except logic?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to