fix(podcast): slightly more robust downloading and concurrency (#433)
This commit is contained in:
@@ -388,6 +388,17 @@ func main() {
|
||||
return nil
|
||||
})
|
||||
|
||||
errgrp.Go(func() error {
|
||||
defer logJob("podcast download")()
|
||||
|
||||
ctxTick(ctx, 5*time.Second, func() {
|
||||
if err := podcast.DownloadTick(); err != nil {
|
||||
log.Printf("failed to download podcast: %s", err)
|
||||
}
|
||||
})
|
||||
return nil
|
||||
})
|
||||
|
||||
errgrp.Go(func() error {
|
||||
if *confPodcastPurgeAgeDays == 0 {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user