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

track_artifact_report_worker.rb « job_artifacts « ci « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3df8c284ab3d29ed13472c9a6a84f5366f099f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Ci
  module JobArtifacts
    class TrackArtifactReportWorker
      include ApplicationWorker

      data_consistency :delayed

      include PipelineBackgroundQueue

      feature_category :code_testing

      idempotent!

      def perform(pipeline_id)
        Ci::Pipeline.find_by_id(pipeline_id).try do |pipeline|
          Ci::JobArtifacts::TrackArtifactReportService.new.execute(pipeline)
        end
      end
    end
  end
end