Commit 0cb8de42 authored by PaulChen2016's avatar PaulChen2016 Committed by GitHub

Beego 运行过程中动态增减定时任务时,now的时间需要更新,否则等待时间会不正确

beego 启动时,执行toolbox.StartTask()
运行过程中,动态添加定时任务(这个是now时间已经不是starttask的时间了,需要刷新)     
     case <-changed:
			now = time.Now().Local()
			continue
parent 323a1c42
......@@ -427,6 +427,7 @@ func run() {
}
continue
case <-changed:
now = time.Now().Local()
continue
case <-stop:
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment