mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
refactor(proxy): drop the legacy force_reload backfill from the reload tracking migration
The backfill only carried over a manual reload clicked in the seconds before an upgrade, and every upgrade restarts the pods, which re-fetch the cost map at import and so already deliver what that request asked for. Removing it makes the migration schema-only, so prisma db push and prisma migrate deploy leave the database in the same state instead of diverging on a data statement that only one of them runs.
This commit is contained in:
parent
11014897a7
commit
2887eb3322
1 changed files with 0 additions and 4 deletions
|
|
@ -1,7 +1,3 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "LiteLLM_Config" ADD COLUMN IF NOT EXISTS "last_run_at" TIMESTAMP(3),
|
||||
ADD COLUMN IF NOT EXISTS "reload_requested_at" TIMESTAMP(3);
|
||||
|
||||
-- Carry over a manual reload that was still pending under the older boolean flag, so
|
||||
-- pods that have not picked it up yet still fan out after this deploy.
|
||||
UPDATE "LiteLLM_Config" SET "reload_requested_at" = CURRENT_TIMESTAMP WHERE "param_value"->'force_reload' = 'true'::jsonb;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue