Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4bc90a2

Browse files
committed
每周一次全量
1 parent ae5b1fc commit 4bc90a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ func IndexingServer() {
5050
c.AddFunc("@every 1m", func() {
5151
indexing(false)
5252
})
53-
// 一天一次全量
54-
c.AddFunc("@daily", func() {
53+
// 一周一次全量(周六晚上2点开始)
54+
c.AddFunc("0 0 2 * * 6", func() {
5555
indexing(true)
56-
})
56+
}
5757

5858
c.Start()
5959
}

0 commit comments

Comments
 (0)