From 67f3a721e3d8639034f17e13238232b834d18442 Mon Sep 17 00:00:00 2001 From: Shawn Qiu Date: Tue, 13 Aug 2024 11:47:32 -0700 Subject: [PATCH] fix rlock issue --- agentops/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def _flush_queue(self) -> None: 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: