debian-mirror-gitlab/app/workers/propagate_integration_worker.rb

18 lines
474 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
class PropagateIntegrationWorker
include ApplicationWorker
2021-06-08 01:23:25 +05:30
sidekiq_options retry: 3
2020-06-23 00:09:42 +05:30
feature_category :integrations
idempotent!
loggable_arguments 1
2021-01-03 14:25:43 +05:30
# TODO: Keep overwrite parameter for backwards compatibility. Remove after >= 14.0
# https://gitlab.com/gitlab-org/gitlab/-/issues/255382
2020-11-24 15:15:51 +05:30
def perform(integration_id, overwrite = nil)
2021-06-08 01:23:25 +05:30
Admin::PropagateIntegrationService.propagate(Integration.find(integration_id))
2020-06-23 00:09:42 +05:30
end
end