@@ -176,29 +176,29 @@ func registerGCLFS() {
176176 return
177177 }
178178 type GCLFSConfig struct {
179- OlderThanConfig
179+ BaseConfig
180+ OlderThan time.Duration
180181 LastUpdatedMoreThanAgo time.Duration
181182 NumberToCheckPerRepo int64
182183 ProportionToCheckPerRepo float64
183184 }
184185
185186 RegisterTaskFatal ("gc_lfs" , & GCLFSConfig {
186- OlderThanConfig : OlderThanConfig {
187- BaseConfig : BaseConfig {
188- Enabled : false ,
189- RunAtStart : false ,
190- Schedule : "@every 24h" ,
191- },
192- // Only attempt to garbage collect lfs meta objects older than a week as the order of git lfs upload
193- // and git object upload is not necessarily guaranteed. It's possible to imagine a situation whereby
194- // an LFS object is uploaded but the git branch is not uploaded immediately, or there are some rapid
195- // changes in new branches that might lead to lfs objects becoming temporarily unassociated with git
196- // objects.
197- //
198- // It is likely that a week is potentially excessive but it should definitely be enough that any
199- // unassociated LFS object is genuinely unassociated.
200- OlderThan : 24 * time .Hour * 7 ,
187+ BaseConfig : BaseConfig {
188+ Enabled : false ,
189+ RunAtStart : false ,
190+ Schedule : "@every 24h" ,
201191 },
192+ // Only attempt to garbage collect lfs meta objects older than a week as the order of git lfs upload
193+ // and git object upload is not necessarily guaranteed. It's possible to imagine a situation whereby
194+ // an LFS object is uploaded but the git branch is not uploaded immediately, or there are some rapid
195+ // changes in new branches that might lead to lfs objects becoming temporarily unassociated with git
196+ // objects.
197+ //
198+ // It is likely that a week is potentially excessive but it should definitely be enough that any
199+ // unassociated LFS object is genuinely unassociated.
200+ OlderThan : 24 * time .Hour * 7 ,
201+
202202 // Only GC things that haven't been looked at in the past 3 days
203203 LastUpdatedMoreThanAgo : 24 * time .Hour * 3 ,
204204 NumberToCheckPerRepo : 100 ,
0 commit comments