Skip to content

[Bug]: 'Batch' object has no attribute 'litellm_dailytagspend' #10290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abarahonar opened this issue Apr 24, 2025 · 0 comments
Open

[Bug]: 'Batch' object has no attribute 'litellm_dailytagspend' #10290

abarahonar opened this issue Apr 24, 2025 · 0 comments
Labels
bug Something isn't working mlops user request

Comments

@abarahonar
Copy link

What happened?

We are seing a lot these messages in our logs, ru

Relevant log output

Job "update_spend (trigger: interval[0:00:10], next run at: 2025-04-24 15:32:10 -04)" raised an exception
Traceback (most recent call last):
  File "/Users/abarahonar/.pyenv/versions/3.10.16/lib/python3.10/site-packages/apscheduler/executors/base.py", line 181, in run_coroutine_job
    retval = await job.func(*job.args, **job.kwargs)
  File "/Users/abarahonar/.pyenv/versions/3.10.16/lib/python3.10/site-packages/litellm/proxy/utils.py", line 2585, in update_spend
    await proxy_logging_obj.db_spend_update_writer.db_update_spend_transaction_handler(
  File "/Users/abarahonar/.pyenv/versions/3.10.16/lib/python3.10/site-packages/litellm/proxy/db/db_spend_update_writer.py", line 381, in db_update_spend_transaction_handler
    await self._commit_spend_updates_to_db_without_redis_buffer(
  File "/Users/abarahonar/.pyenv/versions/3.10.16/lib/python3.10/site-packages/litellm/proxy/db/db_spend_update_writer.py", line 515, in _commit_spend_updates_to_db_without_redis_buffer
    await DBSpendUpdateWriter.update_daily_tag_spend(
  File "/Users/abarahonar/.pyenv/versions/3.10.16/lib/python3.10/site-packages/litellm/proxy/db/db_spend_update_writer.py", line 1021, in update_daily_tag_spend
    await DBSpendUpdateWriter._update_daily_spend(
  File "/Users/abarahonar/.pyenv/versions/3.10.16/lib/python3.10/site-packages/litellm/proxy/db/db_spend_update_writer.py", line 965, in _update_daily_spend
    _raise_failed_update_spend_exception(
  File "/Users/abarahonar/.pyenv/versions/3.10.16/lib/python3.10/site-packages/litellm/proxy/utils.py", line 2630, in _raise_failed_update_spend_exception
    raise e
  File "/Users/abarahonar/.pyenv/versions/3.10.16/lib/python3.10/site-packages/litellm/proxy/db/db_spend_update_writer.py", line 868, in _update_daily_spend
    table = getattr(batcher, table_name)
AttributeError: 'Batch' object has no attribute 'litellm_dailytagspend'

Are you a ML Ops Team?

Yes

What LiteLLM version are you on ?

v1.67.2

Twitter / LinkedIn details

No response

@abarahonar abarahonar added the bug Something isn't working label Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mlops user request
Projects
None yet
Development

No branches or pull requests

1 participant