feat(release): bound durable run retention

This commit is contained in:
2026-07-22 20:16:19 +02:00
parent ddee5c00dc
commit 4edbc11fe5
5 changed files with 409 additions and 57 deletions

View File

@@ -249,9 +249,11 @@ def create_app(
return to_jsonable(release_plan)
@app.get("/api/release-runs")
def release_runs(limit: int = 20) -> dict[str, object]:
def release_runs(
limit: int = 20, cursor: str | None = None
) -> dict[str, object]:
try:
return {"runs": app.state.release_runs.list(limit=limit)}
return app.state.release_runs.list_page(limit=limit, cursor=cursor)
except (ReleaseRunConflict, ReleaseRunCorrupt) as exc:
raise HTTPException(status_code=409, detail=str(exc)) from exc