mirror of https://gitee.com/answerdev/answer.git
start cron
This commit is contained in:
parent
07d4b8b803
commit
3cc7f9fbb0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue