Cleanup metricstore options

Entire-Checkpoint: 2f9a4e1c2e87
This commit is contained in:
2026-03-04 10:37:43 +01:00
parent 84fda9c8e2
commit 39635ea123
6 changed files with 27 additions and 53 deletions

View File

@@ -24,19 +24,15 @@ func CleanUp(wg *sync.WaitGroup, ctx context.Context) {
if Keys.Cleanup.Mode == "archive" {
// Run as Archiver
cleanUpWorker(wg, ctx,
Keys.Cleanup.Interval,
Keys.RetentionInMemory,
"archiving",
Keys.Cleanup.RootDir,
false,
)
} else {
if Keys.Cleanup.Interval == "" {
Keys.Cleanup.Interval = Keys.RetentionInMemory
}
// Run as Deleter
cleanUpWorker(wg, ctx,
Keys.Cleanup.Interval,
Keys.RetentionInMemory,
"deleting",
"",
true,