Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pmchung committed Jul 31, 2023
1 parent b7963f6 commit 032c21e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ private Map<String, Object> completeTask(
String taskId = (String) replaced.get("taskId");
String taskRefName = (String) replaced.get("taskRefName");
Boolean retry = Boolean.TRUE.equals(replaced.get("retry"));
String failReason = (String) replaced.get("failReason");

TaskModel taskModel = null;
if (StringUtils.isNotEmpty(taskId)) {
Expand Down Expand Up @@ -174,6 +175,8 @@ private Map<String, Object> completeTask(

if (retry) {
status = TaskModel.Status.FAILED;
} else if (status.equals(TaskModel.Status.FAILED_WITH_TERMINAL_ERROR) && failReason != null) {
taskModel.setReasonForIncompletion(failReason);
}

taskModel.setStatus(status);
Expand Down

0 comments on commit 032c21e

Please sign in to comment.