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

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

class PropagateIntegrationWorker
  include ApplicationWorker

  feature_category :integrations
  idempotent!
  loggable_arguments 1

  # TODO: Keep overwrite parameter for backwards compatibility. Remove after >= 14.0
  # https://gitlab.com/gitlab-org/gitlab/-/issues/255382
  def perform(integration_id, overwrite = nil)
    Admin::PropagateIntegrationService.propagate(Service.find(integration_id))
  end
end