Kryst4lDem0ni4s commented on code in PR #188:
URL: 
https://github.com/apache/incubator-hugegraph-ai/pull/188#discussion_r2022593080


##########
hugegraph-llm/src/hugegraph_llm/utils/decorators.py:
##########
@@ -90,3 +90,20 @@ def wrapper(*args: Any, **kwargs: Any) -> Any:
             log.debug("%s QPS: %f/s", args[0].__class__.__name__, qps)
         return result
     return wrapper
+
+def with_task_id(func: Callable) -> Callable:
+    def wrapper(*args: Any, **kwargs: Any) -> Any:
+        import uuid
+        task_id = f"task_{str(uuid.uuid4())[:8]}"        
+        log.info("New task created with id: %s", task_id)

Review Comment:
   
![image](https://github.com/user-attachments/assets/ec9cc345-6992-45a4-b7c7-6d02aa69ea5e)
   Im having issues resolving this error @imbajin 



-- 
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