From 35223f8103b2c1f1e33f470040a0b7838169a24e Mon Sep 17 00:00:00 2001 From: David Himmelstrup Date: Fri, 19 Jan 2024 10:38:53 +0100 Subject: [PATCH] snapshot service: bump retension to 336 snapshots (14 days worth) (#382) --- cf/prune-latest/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cf/prune-latest/src/index.ts b/cf/prune-latest/src/index.ts index 6e081b069..492102d2d 100644 --- a/cf/prune-latest/src/index.ts +++ b/cf/prune-latest/src/index.ts @@ -3,7 +3,8 @@ export interface Env { } // Number of recent snapshots to keep. Roughly 1 new snapshot is uploaded every hour. -const KEEP_COUNT: number = 10; +// Keep 24*14=336 snapshots for approximately 14 days of retention. +const KEEP_COUNT: number = 24 * 14; async function prune(env: Env, chain: string): Promise { const listed = await env.FOREST_ARCHIVE.list({ prefix: chain + "/latest/" });