准备可配置爬虫

This commit is contained in:
marvzhang
2019-11-23 18:13:47 +08:00
parent 010968a7ce
commit 607ce70f5c
13 changed files with 315 additions and 2 deletions

View File

@@ -258,7 +258,7 @@ func InitNodeService() error {
return err
}
// 如果为主节点,每30秒刷新所有节点信息
// 如果为主节点,每10秒刷新所有节点信息
if model.IsMaster() {
spec := "*/10 * * * * *"
if _, err := c.AddFunc(spec, UpdateNodeStatus); err != nil {