Files
windmill/backend/windmill-api-settings
Ruben FiszelandClaude Opus 5.5 4e5fc300f3 feat: add an instance setting for raw app versions to keep (#12577)
* feat: add an instance setting for full-code app versions to keep

`raw_app_versions_to_keep` makes the monitor delete each raw app's versions past
the newest N, with their bundles. A version superseded less than an hour ago and
a version a draft is based on are kept.

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

* fix: validate the versions to keep in the UI as the server does

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

* fix: read the drafts' bases per batch while pruning app versions

A first pass over a long history runs for minutes, so a draft saved during it
was not seen by the snapshot taken with the candidates.

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

* fix: never date a version's supersession before the version itself

`created_at` is when a deploy started, so a successor can carry the older one.

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

* fix: keep pruned app versions' rows while object storage is down

`get_object_store` answers `None` both for no storage and for storage that
failed to build or refresh, and deleting the rows then orphans the bundles.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:24:30 +01:00
..