feat(1.0): 新增脚本定时更新小程序状态
This commit is contained in:
parent
78a2b442ec
commit
4e236e084e
@ -15,7 +15,7 @@ func (s *server) Start() {
|
|||||||
s.cron.Start()
|
s.cron.Start()
|
||||||
go s.taskCount.Wait()
|
go s.taskCount.Wait()
|
||||||
|
|
||||||
// 每 5 分钟监控小程序状态
|
// 每 10 分钟监控小程序状态
|
||||||
s.cron.AddFunc("0 */10 * * * ?", func() {
|
s.cron.AddFunc("0 */10 * * * ?", func() {
|
||||||
s.taskCount.Add()
|
s.taskCount.Add()
|
||||||
defer s.taskCount.Done()
|
defer s.taskCount.Done()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user