Skip to content

feat(proxy): cleanup spend logs cron verification, fix, and docs - #19085

Merged
1 commit merged into
BerriAI:litellm_staging_01_14_2026from
Harshit28j:fix/spend-log-cron-scheduling
Jan 14, 2026
Merged

feat(proxy): cleanup spend logs cron verification, fix, and docs#19085
1 commit merged into
BerriAI:litellm_staging_01_14_2026from
Harshit28j:fix/spend-log-cron-scheduling

Conversation

@Harshit28j

Copy link
Copy Markdown
Contributor

Relevant issues

Fixes #15081

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

CI (LiteLLM team)

CI status guideline:

  • 50-55 passing tests: main is stable with minor issues.
  • 45-49 passing tests: acceptable but needs attention
  • <= 40 passing tests: unstable; be careful with your merges and assess the risk.
  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

🆕 New Feature
📖 Documentation
✅ Test

Changes

  • Feat: Enabled cron-based scheduling for spend log cleanup via maximum_spend_logs_cleanup_cron setting (e.g., "0 4 * * *").
  • Docs: Updated docs/my-website/docs/proxy/spend_logs_deletion.md with configuration details and examples.
  • Test: Added unit tests in tests/test_litellm/proxy/test_spend_log_cleanup.py to verify cron parsing and scheduler integration.
  • Fix: Removed potential memory leak sources (jitter) from the cleanup job scheduling in proxy_server.py.
image

@vercel

vercel Bot commented Jan 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
litellm Ready Ready Preview, Comment Jan 14, 2026 2:18pm

@Harshit28j

Copy link
Copy Markdown
Contributor Author
image

@ghost
ghost changed the base branch from main to litellm_staging_01_14_2026 January 14, 2026 16:42
@ghost
ghost merged commit e8c4cad into BerriAI:litellm_staging_01_14_2026 Jan 14, 2026
6 of 7 checks passed
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question: Can spend log cleanup be scheduled at a specific time?

1 participant