From f79a8f7809ceaa1b2650c98ebdb95bc126a5beac Mon Sep 17 00:00:00 2001 From: Shivam Rawat <161387515+shivamrawat1@users.noreply.github.com> Date: Sat, 14 Feb 2026 14:42:17 -0800 Subject: [PATCH] Update litellm/proxy/common_utils/reset_budget_job.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/common_utils/reset_budget_job.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/proxy/common_utils/reset_budget_job.py b/litellm/proxy/common_utils/reset_budget_job.py index 6f038d127f6..c63309da1dc 100644 --- a/litellm/proxy/common_utils/reset_budget_job.py +++ b/litellm/proxy/common_utils/reset_budget_job.py @@ -95,11 +95,13 @@ class ResetBudgetJob: where={ "budget_id": {"in": budget_ids}, "budget_duration": None, # only keys without their own reset schedule + "spend": {"gt": 0}, # only reset keys that have accumulated spend }, data={ "spend": 0, }, ) + ) async def reset_budget_for_litellm_budget_table(self): """