Skip to content

Commit

Permalink
update pipeline_recovering metric on recovery (#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon authored Oct 25, 2024
1 parent 5a7a56a commit 552a613
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/lifecycle/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ func (s *Service) runPipeline(ctx context.Context, rp *runnablePipeline) error {
// recoverPipeline attempts to recover a pipeline that has stopped running.
func (s *Service) recoverPipeline(ctx context.Context, rp *runnablePipeline) error {
s.logger.Trace(ctx).Str(log.PipelineIDField, rp.pipeline.ID).Msg("recovering pipeline")
measure.PipelineRecoveringCount.WithValues(rp.pipeline.Config.Name).Inc()

err := s.pipelines.UpdateStatus(ctx, rp.pipeline.ID, pipeline.StatusRecovering, "")
if err != nil {
Expand Down

0 comments on commit 552a613

Please sign in to comment.