mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* fix(proxy-extras): roll back a migration killed at the deploy time limit When prisma migrate deploy hits LITELLM_PRISMA_MIGRATE_DEPLOY_TIMEOUT the runner kills Prisma, which left a started-but-unfinished ledger row and a Postgres session that could still commit the migration later. Every later boot then stopped on P3009. Each deploy attempt now names its Postgres sessions. After a kill the runner ends those sessions, waits until they are gone, and marks the row the attempt left rolled back, so the next attempt or the next boot can apply the migration again. * fix(proxy-extras): only roll back a killed migration that is proven not to have committed Roll the row back only when the killed deploy's session was seen still running its statement and its open transaction is recorded as aborted after the session is ended. Measure the row's age from the start of the deploy, and redact the database error before logging it. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(proxy-extras): roll back every migration killed at the deploy time limit Once the killed deploy's sessions are ended and gone, its row is rolled back without also requiring proof that the migration had not committed. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_litellm_proxy_extras_logging.py | ||
| test_litellm_proxy_extras_utils.py | ||
| test_migration_data_checks.py | ||
| test_migration_dry_run.py | ||
| test_prisma_toolchain.py | ||
| test_request_log_indexes.py | ||