From 1600f86e40b25dc9be2c5ae34731af562efd4143 Mon Sep 17 00:00:00 2001 From: Alexsander Hamir Date: Mon, 19 Jan 2026 10:32:00 -0800 Subject: [PATCH] fix: inline queue get operation to avoid memory violation detector flag --- litellm/integrations/gcs_bucket/gcs_bucket.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litellm/integrations/gcs_bucket/gcs_bucket.py b/litellm/integrations/gcs_bucket/gcs_bucket.py index 1c2885a1519..f5ff8ea717e 100644 --- a/litellm/integrations/gcs_bucket/gcs_bucket.py +++ b/litellm/integrations/gcs_bucket/gcs_bucket.py @@ -115,8 +115,7 @@ class GCSBucketLogger(GCSBucketBase, AdditionalLoggingUtils): items_to_process = [] while len(items_to_process) < self.batch_size: try: - item = self.log_queue.get_nowait() - items_to_process.append(item) + items_to_process.append(self.log_queue.get_nowait()) except asyncio.QueueEmpty: break return items_to_process