diff --git a/app/mix/service/cronservice.go b/app/mix/service/cronservice.go index f8744c76..83a7116b 100644 --- a/app/mix/service/cronservice.go +++ b/app/mix/service/cronservice.go @@ -48,7 +48,10 @@ func NewCronService() *CronService { //设置日志查看handler exec.LogHandler(customLogHandle) //注册任务handler - logger.Fatal(exec.Run()) + if err := exec.Run(); err != nil { + logger.Error("xxl-job executor init fail: %v", err) + return + } return new(CronService) }