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: