mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix - only schedule spend alerting when db is not none
This commit is contained in:
parent
7f6f196e66
commit
40b2f33a80
1 changed files with 1 additions and 0 deletions
|
@ -3483,6 +3483,7 @@ async def startup_event():
|
||||||
if (
|
if (
|
||||||
proxy_logging_obj is not None
|
proxy_logging_obj is not None
|
||||||
and proxy_logging_obj.slack_alerting_instance is not None
|
and proxy_logging_obj.slack_alerting_instance is not None
|
||||||
|
and prisma_client is not None
|
||||||
):
|
):
|
||||||
print("Alerting: Initializing Weekly/Monthly Spend Reports") # noqa
|
print("Alerting: Initializing Weekly/Monthly Spend Reports") # noqa
|
||||||
### Schedule weekly/monhtly spend reports ###
|
### Schedule weekly/monhtly spend reports ###
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue