Fixed by fllife: handle_msg太长, 导致xxl_job_log更新失败,从而导致不能触发失败告警

master
maxianming 5 years ago
parent 2349098034
commit d4b8bb19e6
  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