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

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

module Ci
  module PendingBuilds
    class UpdateProjectWorker
      include ApplicationWorker
      include PipelineBackgroundQueue

      data_consistency :always
      idempotent!

      def perform(project_id, update_params)
        ::Project.find_by_id(project_id).try do |project|
          ::Ci::UpdatePendingBuildService.new(project, update_params).execute
        end
      end
    end
  end
end