Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

start cron

aichy1263cc7f9fbb095
diff --git a/internal/base/cron/cron.go b/internal/base/cron/cron.go
index f53dbfeb..2bdd7373 100644
--- a/internal/base/cron/cron.go
+++ b/internal/base/cron/cron.go
@@ -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()