Skip to content

Commit

Permalink
feat(impl):[#253] publish batch finish event only when its completed/…
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
ds-ext-kmassalski committed Dec 8, 2023
1 parent 2c751f1 commit f1c0456
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 f1c0456

Please sign in to comment.