Skip to content

Commit

Permalink
【1.1.15】job remove running msg (#276)
Browse files Browse the repository at this point in the history
* job  remove running msg

* opmitization code

---------

Co-authored-by: huangKai-2323 <[email protected]>
  • Loading branch information
v-kkhuang and v-kkhuang authored Sep 4, 2023
1 parent 0f16f3e commit f9a7338
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ public Message getTaskByID(HttpServletRequest req, @PathVariable("id") Long jobI
return Message.error(
"The corresponding job was not found, or there may be no permission to view the job"
+ "(没有找到对应的job,也可能是没有查看该job的权限)");
} else if (taskVO.getStatus().equals("Running")) {
// 任务运行时不显示异常信息(Do not display exception information during task runtime)
taskVO.setErrCode(null);
taskVO.setErrDesc(null);
}

return Message.ok().data(TaskConstant.TASK, taskVO);
Expand Down

0 comments on commit f9a7338

Please sign in to comment.