Default to 1 year retension
CI / test (push) Successful in 1m5s
Release rolling / release (push) Successful in 7m6s

This commit is contained in:
Raven Scott
2026-07-19 12:56:44 -04:00
parent c3b4240e47
commit 4b8d194b21
8 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ export async function pruneHistory(opts = {}) {
// Drop another 25% of retention window (or 1 day floor)
const extraMs = Math.max(
24 * 60 * 60 * 1000,
Math.floor((config.warmRetentionMs || 7 * 24 * 60 * 60 * 1000) * 0.25)
Math.floor((config.warmRetentionMs || 365 * 24 * 60 * 60 * 1000) * 0.25)
)
const tighter = (beforeMs != null ? beforeMs : started) - extraMs
if (tighter > 0) {