Skip to content

Commit

Permalink
Apply allowAbsentIndentifiersCommon for any type of finihsed state me…
Browse files Browse the repository at this point in the history
…ssage with non-empty message body
  • Loading branch information
muttcg committed Jul 30, 2024
1 parent 1a2f3bd commit 05e97c9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,11 @@ public void allowAbsentIndentifiersCommon(UUID datasetKey, Integer attempt) {
Optional<PipelineStep> identifierStep =
steps.stream().filter(x -> x.getType() == StepType.VERBATIM_TO_IDENTIFIER).findAny();

if (identifierStep.isPresent() && identifierStep.get().getState() == Status.FAILED) {
if (identifierStep.isPresent()
&& FINISHED_STATE_SET.contains(identifierStep.get().getState())
&& identifierStep.get().getMessage() != null
&& !identifierStep.get().getMessage().isEmpty()) {

// Update and mark identier as OK
PipelineStep pipelineStep = identifierStep.get();
pipelineStep.setState(Status.COMPLETED);
Expand Down

0 comments on commit 05e97c9

Please sign in to comment.