(Infra/DB) - Allow running older litellm version when out of sync with current state of DB (#8695)

* fix check migration

* clean up should_update_prisma_schema

* update test

* db_migration_disable_update_check

* Check container logs for expected message

* db_migration_disable_update_check

* test_check_migration_out_of_sync

* test_should_update_prisma_schema

* db_migration_disable_update_check

* pip install aiohttp
This commit is contained in:
Ishaan Jaff 2025-02-20 18:30:23 -08:00 committed by GitHub
parent 300d7825f5
commit 55b938dd6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 168 additions and 22 deletions

View file

@ -607,10 +607,10 @@ def run_server( # noqa: PLR0915
if is_prisma_runnable:
from litellm.proxy.db.check_migration import check_prisma_schema_diff
from litellm.proxy.db.prisma_client import should_update_schema
from litellm.proxy.db.prisma_client import should_update_prisma_schema
if (
should_update_schema(
should_update_prisma_schema(
general_settings.get("disable_prisma_schema_update")
)
is False