Skip to content

Commit

Permalink
core: set job status to ERROR if any step fails, #TASK-6445
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Sep 19, 2024
1 parent d1d2551 commit 37ce484
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ public synchronized ExecutionResult close(Throwable throwable) throws ToolExcept
break;
}
}
for (ToolStep executionStep : execution.getSteps()) {
if (executionStep.getStatus().equals(Status.Type.ERROR)) {
// If there is any ERROR on any step, the final status will be ERROR
finalStatus = Status.Type.ERROR;
break;
}
}
} else {
addError(throwable, execution);
finalStatus = Status.Type.ERROR;
Expand Down

0 comments on commit 37ce484

Please sign in to comment.