mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(proxy/utils.py): emit number of spend transactions for keys being written to db in a batch
This commit is contained in:
parent
b9f5b3c1a0
commit
d0f9f8c0ed
1 changed files with 5 additions and 0 deletions
|
@ -2049,6 +2049,11 @@ async def update_spend(
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
### UPDATE KEY TABLE ###
|
### UPDATE KEY TABLE ###
|
||||||
|
verbose_proxy_logger.debug(
|
||||||
|
"KEY Spend transactions: {}".format(
|
||||||
|
len(prisma_client.key_list_transactons.keys())
|
||||||
|
)
|
||||||
|
)
|
||||||
if len(prisma_client.key_list_transactons.keys()) > 0:
|
if len(prisma_client.key_list_transactons.keys()) > 0:
|
||||||
for i in range(n_retry_times + 1):
|
for i in range(n_retry_times + 1):
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue