mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +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
This commit is contained in:
parent
8439195922
commit
7ff2bcbf14
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