Skip to content

Commit

Permalink
Merge pull request eclipse-tractusx#692 from catenax-ng/feature/eclip…
Browse files Browse the repository at this point in the history
…se-tractusx#253-fix-bug

feat(impl):[eclipse-tractusx#253] publish batch finish event only when its completed/…
  • Loading branch information
ds-ext-kmassalski authored Dec 8, 2023
2 parents c8944d9 + f1c0456 commit c0bb503
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ private void checkIfIsCompleted(final UUID batchId, final LimitedJobEventQueue q
log.info("BatchId: {} reached {} state.", batchId, batchProcessingState);
saveUpdatedBatch(batch, progressList, batchProcessingState);
queueMap.remove(batchId);
publishFinishProcessingEvent(batch, batchProcessingState);
if (isCompleted(batchProcessingState)) {
publishFinishProcessingEvent(batch, batchProcessingState);
}
});
}
}
Expand Down

0 comments on commit c0bb503

Please sign in to comment.