fix(spend): requeue spend logs in place to stay under the LIT002 ceiling
Some checks failed
LiteLLM Rust / rustfmt, clippy, test (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Devin AI 2026-08-13 00:14:04 +00:00
parent b709b7ba7c
commit c8c4492919

View file

@ -5713,7 +5713,7 @@ async def _requeue_spend_log_transactions(prisma_client: PrismaClient, logs: Seq
if not logs:
return
async with prisma_client._spend_log_transactions_lock:
prisma_client.spend_log_transactions = [*logs, *prisma_client.spend_log_transactions]
prisma_client.spend_log_transactions[:0] = logs
def _requeue_tool_usage_transactions_if_flush_failed(