start cron

This commit is contained in:
aichy126 2022-12-13 14:15:44 +08:00
parent 07d4b8b803
commit 3cc7f9fbb0
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ func NewScheduledTaskManager(
func (s *ScheduledTaskManager) Run() {
fmt.Println("start cron")
s.questionService.SitemapCron(context.Background())
c := cron.New()
c.AddFunc("0 */1 * * *", func() {
ctx := context.Background()