This commit is contained in:
parent
75b8d47ba9
commit
19953dddb3
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue