Improve retention

Add db cleanup
Fixes #103
This commit is contained in:
2023-05-11 09:40:13 +02:00
parent cc634dd155
commit 19e3ba7290
4 changed files with 42 additions and 8 deletions

View File

@@ -58,9 +58,10 @@ type ClusterConfig struct {
}
type Retention struct {
Age int `json:"age"`
Policy string `json:"policy"`
Location string `json:"location"`
Age int `json:"age"`
IncludeDB bool `json:"includeDB"`
Policy string `json:"policy"`
Location string `json:"location"`
}
// Format of the configuration (file). See below for the defaults.

View File

@@ -73,6 +73,10 @@
"move"
]
},
"includeDB": {
"description": "Also remove jobs from database",
"type": "boolean"
},
"age": {
"description": "Act on jobs with startTime older than age (in days)",
"type": "integer"