mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
fix: avoid Final binding inside drain loop
This commit is contained in:
parent
6b10d551ab
commit
445b209e42
1 changed files with 1 additions and 1 deletions
|
|
@ -6406,7 +6406,7 @@ async def drain_spend_logs_queue(
|
|||
for _ in range(MAX_SPEND_LOG_DRAIN_ITERATIONS):
|
||||
if await _total_queued_spend_transactions(prisma_client) == 0:
|
||||
return
|
||||
remaining_seconds: Final = deadline - time.monotonic()
|
||||
remaining_seconds = deadline - time.monotonic()
|
||||
if remaining_seconds <= 0:
|
||||
break
|
||||
await update_spend_logs_job(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue