Skip to content

Commit

Permalink
update task (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
likehabits authored Oct 7, 2023
1 parent fabdd98 commit 7b3ec5b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ public BaseResultEntity cancelTask(Long taskId) {
TaskParam taskParam = dataAsyncService.getTaskHelper().killTask(rawDataTask.getTaskIdName());
if (taskParam.getSuccess()){
rawDataTask.setTaskState(TaskStateEnum.CANCEL.getStateType());
rawDataTask.setTaskEndTime(System.currentTimeMillis());
dataTaskPrRepository.updateDataTask(rawDataTask);
if (rawDataTask.getTaskType().equals(TaskTypeEnum.PSI.getTaskType())){
DataPsiTask task = dataPsiRepository.selectPsiTaskById(taskId);
Expand Down

0 comments on commit 7b3ec5b

Please sign in to comment.