mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
[Fix] Increase _delete_file retry budget to reduce flakiness
Increase max_retries from 6 to 9 and retry_delay from 10s to 20s (180s total wait, up from 60s) to give batch cost tracking more time to finish before cleanup attempts file deletion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
57865ec96e
commit
4e70254d56
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ class TestManagedFilesAPI(ManagedFilesBase, UserKeyTestMixin):
|
|||
|
||||
return metadata
|
||||
|
||||
def _delete_file(self, file_id, label, max_retries=6, retry_delay=10):
|
||||
def _delete_file(self, file_id, label, max_retries=9, retry_delay=20):
|
||||
print(f"\nDeleting {label}: {self.shorten_id(file_id)}")
|
||||
for attempt in range(max_retries):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue