litellm/basedpyright-code-budget.json
Yuneng Jiang 92e6ea4350
fix(proxy): retry spend-log writes on any error before dropping the batch
update_spend_logs pops the batch off spend_log_transactions before writing and
deliberately never puts it back, so an attempt not made here is billing data
gone for good. The inner retry only caught DB_CONNECTION_ERROR_TYPES, which is
httpx transport errors, while the failures concurrency actually produces
(deadlock detected, serialization failure, statement and lock timeouts, pool
exhaustion) arrive as prisma errors and got zero attempts before the whole
batch, up to MAX_LOGS_PER_INTERVAL rows, was discarded

Retrying any error is safe here: the write is idempotent (create_many with
skip_duplicates), and a row Postgres rejects on its data never reaches this
handler because _create_spend_logs_with_poison_isolation drops it and returns,
so a poisoned batch cannot spin. Retries stay bounded by n_retry_times and the
batch is still surfaced once they are spent
2026-08-12 10:55:05 -07:00

146 lines
2.4 KiB
JSON

{
"reportAny": {
"limit": 23919
},
"reportArgumentType": {
"limit": 2580
},
"reportAssignmentType": {
"limit": 323
},
"reportAttributeAccessIssue": {
"limit": 488
},
"reportCallIssue": {
"limit": 114
},
"reportConstantRedefinition": {
"limit": 40
},
"reportDeprecated": {
"limit": 213
},
"reportDuplicateImport": {
"limit": 19
},
"reportExplicitAny": {
"limit": 7573
},
"reportFunctionMemberAccess": {
"limit": 7
},
"reportGeneralTypeIssues": {
"limit": 157
},
"reportIncompatibleMethodOverride": {
"limit": 56
},
"reportIncompatibleVariableOverride": {
"limit": 8
},
"reportInconsistentOverload": {
"limit": 12
},
"reportIndexIssue": {
"limit": 35
},
"reportInvalidTypeForm": {
"limit": 35
},
"reportInvalidTypeVarUse": {
"limit": 2
},
"reportMatchNotExhaustive": {
"limit": 0
},
"reportMissingParameterType": {
"limit": 5719
},
"reportMissingTypeArgument": {
"limit": 15657
},
"reportMissingTypeStubs": {
"limit": 40
},
"reportOperatorIssue": {
"limit": 0
},
"reportOptionalCall": {
"limit": 0
},
"reportOptionalIterable": {
"limit": 0
},
"reportOptionalMemberAccess": {
"limit": 1069
},
"reportOptionalOperand": {
"limit": 0
},
"reportOptionalSubscript": {
"limit": 0
},
"reportPossiblyUnboundVariable": {
"limit": 56
},
"reportPrivateUsage": {
"limit": 1824
},
"reportRedeclaration": {
"limit": 8
},
"reportReturnType": {
"limit": 213
},
"reportTypedDictNotRequiredAccess": {
"limit": 26
},
"reportUndefinedVariable": {
"limit": 0
},
"reportUnknownArgumentType": {
"limit": 44832
},
"reportUnknownLambdaType": {
"limit": 113
},
"reportUnknownMemberType": {
"limit": 39269
},
"reportUnknownParameterType": {
"limit": 19988
},
"reportUnknownVariableType": {
"limit": 30923
},
"reportUnnecessaryCast": {
"limit": 118
},
"reportUnnecessaryComparison": {
"limit": 698
},
"reportUnnecessaryContains": {
"limit": 5
},
"reportUnnecessaryIsInstance": {
"limit": 853
},
"reportUntypedBaseClass": {
"limit": 0
},
"reportUntypedFunctionDecorator": {
"limit": 27
},
"reportUnusedClass": {
"limit": 23
},
"reportUnusedFunction": {
"limit": 139
},
"reportUnusedImport": {
"limit": 545
},
"reportUnusedVariable": {
"limit": 146
}
}