Skip to content

Commit

Permalink
update: 取消所有定时任务
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Feb 23, 2024
1 parent 10de2b0 commit 5ff01b3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/gogf/gf/v2/os/gcmd"
"github.com/gogf/gf/v2/os/glog"
"github.com/gogf/gf/v2/os/gres"
"kes-cron/internal/boot"
"kes-cron/internal/global/g_consts"
"kes-cron/internal/global/g_structs"
"kes-cron/utility/cron_utils"
Expand Down Expand Up @@ -85,11 +84,11 @@ var (
glog.Notice(ctx, "当前后端地址: ", g_consts.BackendBaseUrl())

// 初始化
if err := boot.Boot(serverInitData); err != nil {
glog.Fatal(ctx, "初始化任务失败: ", err)
time.Sleep(5 * time.Second)
return err
}
//if err := boot.Boot(serverInitData); err != nil {
// glog.Fatal(ctx, "初始化任务失败: ", err)
// time.Sleep(5 * time.Second)
// return err
//}

// 启动服务
s := g.Server()
Expand Down

0 comments on commit 5ff01b3

Please sign in to comment.