mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
Three defects surfaced in review. Durations were keyed by job id alone, but APSCHEDULER_MAX_INSTANCES and coalesce are both env-overridable, so several runs of one job can be in flight or one submission can carry several run times. Runs are now keyed by job id and scheduled run time, so concurrent runs stop consuming each other's start times. A failed lock attempt was reported as ordinary contention, because the inner method returns False both when another pod wins and when Redis errors. The wrapper now owns the no-Redis and error exits and emits a distinct result, with the bool | None contract to callers unchanged. update_spend no longer reports an item count. The spend-log queue is drained by _monitor_spend_logs_queue as well, so a count derived from queue depth here could credit that task's work or hide work this job did. The listener still publishes counts for any job that can report one it owns. |
||
|---|---|---|
| .. | ||
| helpers | ||
| prisma_and_spend | ||
| proxy_logging | ||
| __init__.py | ||