2020-06-23 00:09:42 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PropagateIntegrationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
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)
|
|
|
|
Admin::PropagateIntegrationService.propagate(Service.find(integration_id))
|
2020-06-23 00:09:42 +05:30
|
|
|
end
|
|
|
|
end
|