|
|
|
@ -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()
|
|
|
|
|