From 19953dddb3edfa87b7cb3bcd8f21b67bc6e2e0ef Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 17 Jan 2024 19:53:17 +0800 Subject: [PATCH] by --- app/mix/service/cronservice.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) }