From 1b54d5422336e60f092a6d37fa4c3fe07fecc7fb Mon Sep 17 00:00:00 2001 From: Vivian Leung Date: Mon, 18 Aug 2025 11:45:17 +0200 Subject: [PATCH] Backend: Add json values for Shaman.GarbageCollect in config (#104421) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkg/shaman/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/shaman/config/config.go b/pkg/shaman/config/config.go index b90a466b..b16551c0 100644 --- a/pkg/shaman/config/config.go +++ b/pkg/shaman/config/config.go @@ -53,9 +53,9 @@ type Config struct { // GarbageCollect contains the config options for the GC. type GarbageCollect struct { // 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: - MaxAge duration.Duration `yaml:"maxAge"` + MaxAge duration.Duration `json:"maxAge" yaml:"maxAge"` // Used by the -gc CLI arg to silently disable the garbage collector // while we're performing a manual sweep.