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

update_group_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: 3ee3a9116d828b23361d5a1ee04214c1783a770d (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 UpdateGroupWorker
      include ApplicationWorker
      include PipelineBackgroundQueue

      data_consistency :always
      idempotent!

      def perform(group_id, update_params)
        ::Group.find_by_id(group_id).try do |group|
          ::Ci::UpdatePendingBuildService.new(group, update_params).execute
        end
      end
    end
  end
end