Skip to content

Commit

Permalink
🔊 write total number of chunks to logs during mapping job execution
Browse files Browse the repository at this point in the history
  • Loading branch information
YemreGurses authored and sinaci committed Nov 29, 2024
1 parent 08e6acd commit 3f0bb98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class FhirMappingJobManager(
case (fj, (df, i)) => fj.flatMap(_ =>
executeTask(mappingJobExecution.jobId, mappingTask.name, fhirMapping, df, mds, terminologyServiceSettings, identityServiceSettings, Some(mappingJobExecution.id), projectId = Some(mappingJobExecution.projectId))
.map(dataset => SinkHandler.writeMappingResult(spark, mappingJobExecution, Some(mappingTask.name), dataset, fhirWriter))
.map(_ => logger.debug(s"Chunk ${i + 1} is completed for mapping ${mappingTask.name} within MappingJob: ${mappingJobExecution.jobId}..."))
.map(_ => logger.debug(s"Chunk ${i + 1} / $numOfChunks is completed for mapping ${mappingTask.name} within MappingJob: ${mappingJobExecution.jobId}..."))
)
}
}
Expand Down

0 comments on commit 3f0bb98

Please sign in to comment.