Merge pull request #1564 from fllife/master

Fixed by fllife: handle_msg太长, 导致xxl_job_log更新失败,从而导致不能触发失败告警
master
许雪里 5 years ago committed by GitHub
commit 5f092193e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java

@ -110,7 +110,13 @@ public class AdminBizImpl implements AdminBiz {
// success, save log
log.setHandleTime(new Date());
log.setHandleCode(handleCallbackParam.getExecuteResult().getCode());
log.setHandleMsg(handleMsg.toString());
if (handleMsg.length() > 15000) { // text最大64kb 避免长度过长
log.setHandleMsg(handleMsg.substring(0, 15000));
} else {
log.setHandleMsg(handleMsg.toString());
}
xxlJobLogDao.updateHandleInfo(log);
return ReturnT.SUCCESS;

Loading…
Cancel
Save