Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

fix rlock issue (#352)

Shawn Qiu4d2534bcfedf
diff --git a/agentops/session.py b/agentops/session.py
index 5abb9629..cec18c3f 100644
--- a/agentops/session.py
+++ b/agentops/session.py
@@ -268,7 +268,7 @@ class Session:
if not self.is_running:
return
with self.lock:
- queue_copy = copy.deepcopy(self.queue) # Copy the current items
+ queue_copy = self.queue[:] # Copy the current items
self.queue = []
if len(queue_copy) > 0: