Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JavokhirAbdullayev committed Nov 14, 2024
1 parent 726de0e commit d2d4d1e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private Future<Boolean> updateJobExecutionIfAllRecordsProcessed(String jobExecut
parentExecution.withStatus(JobExecution.Status.COMMITTED)
.withUiStatus(JobExecution.UiStatus.RUNNING_COMPLETE)
.withCompletedDate(new Date());
sendEventToBulkOps(parentExecution, params);
sendDiJobCompletedEvent(parentExecution, params);
return jobExecutionService.updateJobExecutionWithSnapshotStatus(parentExecution, params);
}
return Future.succeededFuture(parentExecution);
Expand All @@ -273,7 +273,7 @@ private Future<Boolean> updateJobExecutionIfAllRecordsProcessed(String jobExecut
return Future.succeededFuture(false);
}

private void sendEventToBulkOps(JobExecution jobExecution, OkapiConnectionParams params) {
private void sendDiJobCompletedEvent(JobExecution jobExecution, OkapiConnectionParams params) {
var kafkaHeaders = KafkaHeaderUtils.kafkaHeadersFromMultiMap(params.getHeaders());
kafkaHeaders.add(new KafkaHeaderImpl(JOB_EXECUTION_ID_HEADER, jobExecution.getId()));
kafkaHeaders.add(new KafkaHeaderImpl(USER_ID_HEADER, jobExecution.getUserId()));
Expand Down

0 comments on commit d2d4d1e

Please sign in to comment.