Skip to content

Commit

Permalink
调度任务执行异常时,需要设置Remark上报给服务端
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jun 25, 2024
1 parent cc69b26 commit 0795c1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions invokeJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (receiver *Job) Run() {
}
}).CatchException(func(exp any) {
receiver.jobContext.status = executeStatus.Fail
receiver.jobContext.Remark("%s", exp)
receiver.jobContext.Error(exp)
entryFSchedule.Error(fmt.Errorf("%s", exp))
})
Expand Down

0 comments on commit 0795c1c

Please sign in to comment.