Skip to content

Commit

Permalink
correctly set pipeline end date
Browse files Browse the repository at this point in the history
  • Loading branch information
hansva committed Mar 14, 2024
1 parent c7f9702 commit 3d24f21
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,14 @@ public void run() {
// Log pipeline Finished listener at the end
pipeline.addExecutionFinishedListener(
pipelineEngine -> {
timer.cancel();
logPipeline(log, pipeline, endpoint, Pipeline.STRING_FINISHED);
try {
timer.cancel();
pipeline.getExtensionDataMap().put(PIPELINE_END_DATE, new Date());
logPipeline(log, pipeline, endpoint, Pipeline.STRING_FINISHED);
} catch (Exception e) {
throw new RuntimeException(
"Unable to do interval logging for Pipeline Log object", e);
}
});

pipeline.addExecutionStoppedListener(
Expand Down

0 comments on commit 3d24f21

Please sign in to comment.