debian-mirror-gitlab/app/workers/propagate_integration_worker.rb
2021-06-08 01:23:25 +05:30

17 lines
474 B
Ruby

# frozen_string_literal: true
class PropagateIntegrationWorker
include ApplicationWorker
sidekiq_options retry: 3
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(Integration.find(integration_id))
end
end