feat(artwork): extend stale absent age to 30 days and update test formatting

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2026-08-22 21:38:54 -04:00
parent 59810c3d59
commit 3cb9850872
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package cmd
import (
"context"
"errors"
"fmt"
"io"
"strings"
"time"
@ -910,7 +911,7 @@ var _ = Describe("formatStatus", func() {
})
It("states the recheck window and the drip rate the absent counts are bucketed against", func() {
Expect(formatStatus(rep)).To(ContainSubstring("168h"))
Expect(formatStatus(rep)).To(ContainSubstring(fmt.Sprintf("%gh", artwork.StaleAbsentAge.Hours())))
Expect(formatStatus(rep)).To(ContainSubstring("100 per kind per hour"))
})

View File

@ -18,7 +18,7 @@ import (
)
// StaleAbsentAge is how long an absent state is trusted before a recheck retries it.
const StaleAbsentAge = 7 * 24 * time.Hour
const StaleAbsentAge = 30 * 24 * time.Hour
// StaleAbsentRecheckBatch caps how many absent states each hourly tick re-queues per kind,
// oldest first, so external agents see a flat drip instead of a daily burst.