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

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

module Ci
  module Pipelines
    class CreateArtifactWorker
      include ApplicationWorker
      include PipelineBackgroundQueue

      idempotent!

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