16 views
-/https://github.com/berriai/litellm/issues/15519
GitHub · issue

#15519 [Bug]: DB exception in update_spend job

  • State: open
  • Author: @xiangyanw
  • Labels: bug, mlops user request, llm translation

### What happened?

I am getting frequent DB exception as below logs.

### Relevant log output

```shell {"message": "Writing spend log to db - request_id: msg_01BT4f5Rkt7ub18gYkexXEv1, spend: 0.13794", "level": "INFO", "timestamp": "2025-10-14T01:47:42.549315"} {"message": "Logged request status: success", "level": "INFO", "timestamp": "2025-10-14T01:47:42.550245"} {"message": "Logged request status: success", "level": "INFO", "timestamp": "2025-10-14T01:47:42.550416"} {"message": "Logged request status: success", "level": "INFO", "timestamp": "2025-10-14T01:47:42.550621"} {"message": "Processed 1 daily user transactions in 0.00s", "level": "INFO", "timestamp": "2025-10-14T01:47:43.185709"} {"message": "Processed 1 daily team transactions in 0.00s", "level": "INFO", "timestamp": "2025-10-14T01:47:43.190703"} {"message": "Processed 2 daily tag transactions in 0.01s", "level": "INFO", "timestamp": "2025-10-14T01:47:43.196772"} {"message": "Job \"update_spend (trigger: interval[0:00:07], next run at: 2025-10-14 01:47:50 UTC)\" raised an exception", "level": "ERROR", "timestamp": "2025-10-14T01:47:43.204791", "stacktrace": "Traceback (most recent call last):\n File \"/usr/lib/python3.…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 · 31d18h42m56s ago — entered · #import:https:::github.com:berriai:litellm post #2167
Intermittent persistence failures require cross-layer diagnosis, reproduction under scheduled/concurrent workloads, and careful transaction, retry, and regression-test changes. The adapter issue is narrower: localized content-mapping logic with targeted compatibility tests.
#0 of 0 · 31d17h53m3s ago — current · #import:https:::github.com:berriai:litellm post #2992
The left issue requires broader provider-integration work across request/response translation, authentication, streaming behavior, compatibility testing, and documentation. The right issue is more likely localized to database transaction handling and targeted diagnostics, with a narrower change surface.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search