Skip to content

Conquest: delete run data after a retention period #157

Done
elixir-cloud-aai/conquest
#12

Description

@uniqueg

Part of #149 (D-463). Conquest never deletes run data today; with one
bucket per run, buckets would pile up and cost money. Add a retention
setting: a terminal run's data is deleted automatically once the run has
been terminal for longer than the retention period.

  • Setting CONQUEST_RUN_RETENTION (Go duration, e.g. 720h; chart
    runRetention). Default: off (no deletion), so operators who upgrade lose no data; the chart example and our CERIT test deployment set 720h (1 month).
  • A periodic sweep (reconciler or own loop, single-flight across replicas
    via a DB claim) finds terminal runs past retention, calls
    Provisioner.Delete(runID) and records data_deleted_at (migration).
    Shared.Delete deletes the objects under the run's root; obc deletes
    the OBC (Conquest: obc run-bucket provisioner #156). Also delete remaining Jobs/PVCs of the run.
  • Orphan sweep: buckets/OBCs labelled with a run ID that has no run row
    (Conquest: run-bucket provisioner with shared default #154 keeps the bucket when storing the run fails, since the row may exist;
    a failed best-effort Delete also leaves one) are deleted after a grace
    period.
  • API: a run whose data is gone still lists, with outputs/logs answering
    that the data expired (no 500s).
  • No operator clean-up steps (D-463): nothing to run by hand.
  • Tests: sweep with fake clock and fake provisioner; shared prefix
    deletion against SeaweedFS.
  • Docs: config table, Run buckets/retention section, upgrade note (enabling
    it deletes old runs' data on the first sweep).

Activity

  1. added
    status: blocked
    priority: high
    type: feature
    workload: days
    ecp-wp4: M4.4
    topic: conquest
    on Nov 27, 2026
  2. added
    status: triage
    status: in progress
    and removed
    status: blocked
    status: triage
    on Nov 27, 2026
  3. self-assigned this
    on Nov 27, 2026
  4. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 27, 2026
  5. moved this from In progress to Done in ELIXIR On-Cloudon Nov 27, 2026
  6. removed
    status: in progress
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: M4.4priority: hightopic: conquesttype: featureworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions