From 0e456ac599d31ecbbd0098a286ceb6b483505efe Mon Sep 17 00:00:00 2001 From: yucheng Date: Wed, 23 Sep 2026 12:12:51 +0000 Subject: [PATCH] fix(s3_v2): rebind the retry queue instead of slicing in place Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/integrations/s3_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/integrations/s3_v2.py b/litellm/integrations/s3_v2.py index 569f84ab2f2..dc33fe6c2bd 100644 --- a/litellm/integrations/s3_v2.py +++ b/litellm/integrations/s3_v2.py @@ -487,7 +487,7 @@ class S3Logger(CustomBatchLogger, BaseAWSLLM): failed: Final = tuple(element for element, ok in zip(uploads, results, strict=True) if not ok) if not failed: return - self.log_queue[:] = [*failed, *self.log_queue[len(batch) :]] + self.log_queue = [*failed, *self.log_queue[len(batch) :]] raise S3BatchUploadError(failed=len(failed), total=len(uploads)) def _batch_file_mode_active(self) -> bool: