mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-04 23:27:30 +01:00
Cleanup metricstore options
Entire-Checkpoint: 2f9a4e1c2e87
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user