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

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

module Ci
  class BuildPrepareWorker
    include ApplicationWorker
    include PipelineQueue

    queue_namespace :pipeline_processing

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