Update segment cleanup to support object storage (#2876)

* Add support for S3 cleanup + standardize firing cleanup. Closes #2646

* fix: manually fix post-merge
This commit is contained in:
Gabe Kangas
2023-05-31 11:10:04 -07:00
committed by GitHub
parent 798d842f5a
commit c295e4f215
5 changed files with 174 additions and 111 deletions
+3 -1
View File
@@ -151,7 +151,9 @@ func startOnlineCleanupTimer() {
_onlineCleanupTicker = time.NewTicker(1 * time.Minute)
go func() {
for range _onlineCleanupTicker.C {
transcoder.CleanupOldContent(config.HLSStoragePath)
if err := _storage.Cleanup(); err != nil {
log.Errorln(err)
}
}
}()
}