Skip to content

Commit

Permalink
Change termination reason in DeciderService
Browse files Browse the repository at this point in the history
  • Loading branch information
c4lm authored Feb 1, 2024
1 parent 3813331 commit 420ce94
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,12 @@ Optional<TaskModel> retry(
}
updateWorkflowOutput(workflow, task);
if (StringUtils.isEmpty(task.getReasonForIncompletion())) {
task.setReasonForIncompletion("Terminated");
task.setReasonForIncompletion(
String.format(
"Terminated because %s.%s is %s",
workflow.getWorkflowId(),
task.getReferenceTaskName(),
task.getStatus().name()));
}
throw new TerminateWorkflowException(task.getReasonForIncompletion(), status, task);
}
Expand Down

0 comments on commit 420ce94

Please sign in to comment.