gitlab-org--gitlab-foss/app/services/ci/process_pipeline_service.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
522 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Ci
class ProcessPipelineService
attr_reader :pipeline
def initialize(pipeline)
@pipeline = pipeline
end
def execute
increment_processing_counter
Ci::PipelineProcessing::AtomicProcessingService
.new(pipeline)
.execute
end
def metrics
@metrics ||= ::Gitlab::Ci::Pipeline::Metrics
end
private
def increment_processing_counter
metrics.pipeline_processing_events_counter.increment
end
end
end