eust-w ffa066dcf2 feat: remove run volumes after a retention period
Released generations kept their PVCs (and the local backend its run
directories) forever, filling the tenant quota.

- The API's hourly maintenance asks the provisioner to purge the volumes of
  every generation of a run once WF_RUN_STORAGE_RETENTION_HOURS (default a
  week, 0 keeps them) passed since the release, and records storagePurgedAt.
  Checkpoints live in the control plane, so continuing a run never needs them.
- POST /runs/purge deletes the run's PVCs by label (the local backend its
  directories) and answers busy while any of the run's pods or processes is
  active. The baseline Role gains list and delete on PVCs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 20:09:51 +08:00
..