Reduce the delay between two fetch feed timed task

This commit is contained in:
2025-04-06 13:13:03 +08:00
parent b2f88c18c0
commit 1f27667b7e
3 changed files with 19 additions and 8 deletions

View File

@@ -75,7 +75,7 @@ func main() {
// Configure timed tasks
quartz := cron.New(cron.WithLogger(cron.VerbosePrintfLogger(&log.Logger)))
quartz.AddFunc("@every 60m", services.DoAutoDatabaseCleanup)
quartz.AddFunc("@midnight", services.FetchFeedTimed)
quartz.AddFunc("@every 60m", services.FetchFeedTimed)
quartz.Start()
// Server