1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package init_serve
- import (
- "eta_gn/eta_obs/global"
- "github.com/robfig/cron/v3"
- )
- func InitTask() {
-
-
- if global.CONFIG.Serve.IsStopTask {
- return
- }
-
-
-
-
-
-
- c := cron.New(cron.WithSeconds())
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- c.Start()
- }
|