Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build_report_result_worker.rb « ci « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 60387936d0b619d600534df7d3b69dc8bbd9e79f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Ci
  class BuildReportResultWorker
    include ApplicationWorker
    include PipelineBackgroundQueue

    idempotent!

    def perform(build_id)
      Ci::Build.find_by_id(build_id).try do |build|
        Ci::BuildReportResultService.new.execute(build)
      end
    end
  end
end