conflict-test-feat-20240117-001 #88
|
@ -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