retention: explicit run-history and artifact retention
Add `pipelines retention report` (strictly read-only) and `pipelines retention apply` (explicit, approval-gated removal) with an age and/or count policy, protected-run rules, atomic single-transaction removal and honest database space reclaim. Nothing prunes automatically.
This commit is contained in:
@@ -51,3 +51,14 @@ runs/steps are refused. Responses carry the correct `Content-Type` and
|
||||
return `206 Partial Content` with the exact slice (or `416` when unsatisfiable),
|
||||
so images and video can stream. `http.ServeContent` streams from the opened file,
|
||||
so a request never loads the whole file into memory.
|
||||
|
||||
## Removal with run history
|
||||
|
||||
Run artifacts live under `<root>/<run>/<step>` and last as long as the run does.
|
||||
`pipelines retention report`/`apply` (see [CLI and agent authoring](cli.md#run-retention))
|
||||
is the only thing that removes them, and it does so only for a run the operator
|
||||
explicitly selected for removal. Removing a run removes its whole artifact
|
||||
directory; protected and retained runs keep theirs, and their recorded artifact
|
||||
URLs keep serving. A symlink at `<root>/<run>` is removed as a link without
|
||||
touching its target, and a regular file at that path is refused rather than
|
||||
deleted. Nothing removes artifacts automatically.
|
||||
|
||||
Reference in New Issue
Block a user