修改不能bee不能读取配置的bug

This commit is contained in:
郝大全
2017-06-28 18:25:10 +08:00
parent 23be458a95
commit fbd1f9e1a7
2 changed files with 7 additions and 5 deletions

View File

@@ -13,12 +13,13 @@ type RemoveCheckFunc func(e *Entry) bool
// Cron keeps track of any number of entries, invoking the associated func as // Cron keeps track of any number of entries, invoking the associated func as
// specified by the schedule. It may be started, stopped, and the entries may // specified by the schedule. It may be started, stopped, and the entries may
// be inspected while running. // be inspected while running.
// Cron保持任意数量的条目的轨道调用相关的func时间表指定。它可以被启动停止和条目可运行的同时进行检查。
type Cron struct { type Cron struct {
entries []*Entry entries []*Entry //任务
stop chan struct{} stop chan struct{} //停止的通道
add chan *Entry add chan *Entry //添加新任务的方式
remove chan RemoveCheckFunc remove chan RemoveCheckFunc
snapshot chan []*Entry snapshot chan []*Entry //请求获取任务快照的方式
running bool running bool
} }

View File

@@ -13,6 +13,7 @@ const (
func init() { func init() {
//初始化数据模型 //初始化数据模型
beego.LoadAppConfig("ini", "src/github.com/george518/PPGo_Job/conf/app.conf")
models.Init() models.Init()
} }