* 定时任务调整

master
luziqi 2 years ago
parent c4b57bfa30
commit 8a1f6f2daa

@ -14,7 +14,7 @@ import (
func Run() { func Run() {
crontab := cron.New(cron.WithSeconds()) crontab := cron.New(cron.WithSeconds())
crontab.AddFunc("0 */1 * * * ?", CheckAndroidDevices) // crontab.AddFunc("0 */1 * * * ?", CheckAndroidDevices)
// crontab.AddFunc("0 */1 * * * ?", CheckIOSDevices) // crontab.AddFunc("0 */1 * * * ?", CheckIOSDevices)
crontab.AddFunc("*/15 * * * * ?", CheckMonkeyTasks) crontab.AddFunc("*/15 * * * * ?", CheckMonkeyTasks)
crontab.Start() crontab.Start()

Loading…
Cancel
Save