|
@@ -50,7 +50,7 @@ func workCorn() {
|
|
|
|
|
|
func stopCorn() {
|
|
func stopCorn() {
|
|
cn := cron.New()
|
|
cn := cron.New()
|
|
- cn.AddFunc(conf.SysConf.RunCorn, func() {
|
|
|
|
|
|
+ cn.AddFunc(conf.SysConf.StopCorn, func() {
|
|
if job.RunState == 1 { //如果在运行 就暂停
|
|
if job.RunState == 1 { //如果在运行 就暂停
|
|
logger.Info("程序暂停")
|
|
logger.Info("程序暂停")
|
|
job.RunState = 2
|
|
job.RunState = 2
|