bugfix
This commit is contained in:
parent
e025d25017
commit
03a1a1be6c
@ -190,10 +190,17 @@ async def backend_accounting():
|
|||||||
env = ServerEnv()
|
env = ServerEnv()
|
||||||
debug(f'backend accounting started ...')
|
debug(f'backend accounting started ...')
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
lus = await get_accounting_llmusages()
|
lus = await get_accounting_llmusages()
|
||||||
debug(f'get accounting {len(lus)} lus')
|
debug(f'get accounting {len(lus)} lus')
|
||||||
|
except Exception as e:
|
||||||
|
exception(f'{e}')
|
||||||
for lu in lus:
|
for lu in lus:
|
||||||
|
try:
|
||||||
debug(f'backend_accounting(): {lu.id=} handleing...')
|
debug(f'backend_accounting(): {lu.id=} handleing...')
|
||||||
await llm_accounting(lu)
|
await llm_accounting(lu)
|
||||||
|
except Exception as e:
|
||||||
|
exception(f'{e}, {lu.id=}')
|
||||||
|
|
||||||
await asyncio.sleep(10)
|
await asyncio.sleep(10)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user