Skip to content

Commit

Permalink
Ensure in-flight metrics are submitted when Pipeline is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
malessi committed Jan 21, 2025
1 parent edc6ed1 commit 3231f1e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ private PipelineOutcome createJobsAndRunPipeline(

PipelineOutcome pipelineOutcome = pipelineManager.awaitCompletion();

// Ensures that any CloudWatch metrics are published prior to the stop of the Pipeline
appMeters.close();

if (pipelineManager.getError() != null) {
throw new FatalAppException(
"Pipeline job threw exception", pipelineManager.getError(), EXIT_CODE_JOB_FAILED);
Expand Down

0 comments on commit 3231f1e

Please sign in to comment.