Files
windmill/backend/windmill-api/src
Ruben Fiszel a4d0b965ef refactor: replace v2 live migration with regular SQL migration (#7678)
* refactor: replace v2 live migration with regular SQL migration

Remove the v2_finalize live migration that waited for workers to reach
v1.461+ and replace it with an idempotent SQL migration. Since enough
time has passed, all deployments are assumed to be on v1.461+.

Changes:
- Remove v2_finalize() function and spawn task from live_migrations.rs
- Remove MIN_VERSION_IS_AT_LEAST_1_461 constant from min_version.rs
- Add 20260125000000_v2_finalize.up.sql with all finalization steps
- All SQL operations use IF EXISTS/CASCADE for idempotency

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor: remove migration-related delays and tighten CLI tests CI trigger

- Remove 5s backend initialization delay in cargo_backend.ts that was
  needed for the v2 live migration (now replaced with SQL migration)
- Restrict CLI tests workflow to only trigger on cli/** changes
  (removed backend/**, openapi.yaml, openflow.openapi.yaml paths)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: skip v2_finalize migration if live migration already ran

Wrap migration in DO block that checks for 'v2_finalize_job_completed'
in windmill_migrations table. If present (live migration already ran),
skip entirely to avoid unnecessary table locks on upgraded instances.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 22:32:21 +00:00
..
2025-12-23 13:24:04 +00:00
2025-06-02 22:12:33 +02:00
2026-01-24 19:37:25 +00:00
2025-12-11 13:34:17 +00:00
2025-06-02 22:12:33 +02:00
2025-11-18 23:03:35 +00:00
2025-10-16 09:19:44 +00:00
2025-10-16 09:19:44 +00:00
2025-11-18 23:03:35 +00:00
2026-01-24 19:37:25 +00:00
2026-01-11 09:30:07 +00:00
2025-06-02 22:12:33 +02:00
nit
2025-12-15 20:35:51 +00:00
2025-06-02 22:12:33 +02:00
2025-03-13 09:31:38 +01:00
2024-04-04 04:16:53 +02:00
2026-01-20 21:58:41 +01:00
2025-12-01 15:16:22 +01:00
2026-01-22 16:20:01 +00:00
2026-01-09 07:03:29 +00:00
2025-06-02 22:12:33 +02:00
2025-10-17 14:05:17 +00:00
2026-01-24 19:37:25 +00:00
2025-09-04 22:05:22 +00:00
2025-06-02 22:12:33 +02:00
2025-06-02 22:12:33 +02:00
2026-01-24 19:37:25 +00:00
2026-01-21 11:42:25 +00:00
2025-06-02 22:12:33 +02:00
2025-06-02 22:12:33 +02:00
2025-06-02 22:12:33 +02:00
2025-09-09 21:04:23 +00:00
nit
2025-09-11 21:57:56 +00:00
2025-09-17 12:15:33 +00:00
2025-09-02 14:34:46 +00:00
2025-06-02 22:12:33 +02:00