Backend: Add json values for Shaman.GarbageCollect in config (#104421)

Adds in the missing json values for the struct `Shaman.GarbageCollect`
in the config. Added json values for `period` and `maxAge`.

Related to https://projects.blender.org/studio/flamenco/pulls/104406

Reviewed-on: https://projects.blender.org/studio/flamenco/pulls/104421
Reviewed-by: Sybren A. Stüvel <sybren@blender.org>
This commit is contained in:
Vivian Leung 2025-08-18 11:45:17 +02:00 committed by Sybren A. Stüvel
parent 8d2dd5f355
commit 1b54d54223

View File

@ -53,9 +53,9 @@ type Config struct {
// GarbageCollect contains the config options for the GC. // GarbageCollect contains the config options for the GC.
type GarbageCollect struct { type GarbageCollect struct {
// How frequently garbage collection is performed on the file store: // How frequently garbage collection is performed on the file store:
Period duration.Duration `yaml:"period"` Period duration.Duration `json:"period" yaml:"period"`
// How old files must be before they are GC'd: // How old files must be before they are GC'd:
MaxAge duration.Duration `yaml:"maxAge"` MaxAge duration.Duration `json:"maxAge" yaml:"maxAge"`
// Used by the -gc CLI arg to silently disable the garbage collector // Used by the -gc CLI arg to silently disable the garbage collector
// while we're performing a manual sweep. // while we're performing a manual sweep.