mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(e2e): reject first listing that returns after the 40s deadline
A poll may start with remaining budget and still return after started+timeout
if the transport overruns its clamp. Recheck the first-listing deadline after
the response so a late listing does not open the continuous DB-sync phase
(cherry picked from commit 7ff2bcbf14)
This commit is contained in:
parent
84cbd1d594
commit
c32ed90ca9
1 changed files with 2 additions and 0 deletions
|
|
@ -154,6 +154,8 @@ def await_servable(
|
|||
if not listed:
|
||||
first_seen_at = None
|
||||
elif first_seen_at is None:
|
||||
if t > started + timeout:
|
||||
return NotServable(last_result=last_result)
|
||||
first_seen_at = t
|
||||
if db_sync_seconds <= 0:
|
||||
return Servable()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue