2020-05-20 14:08:00 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PropagateIntegrationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
feature_category :integrations
|
|
|
|
idempotent!
|
2020-06-12 08:08:56 -04:00
|
|
|
loggable_arguments 1
|
2020-05-20 14:08:00 -04:00
|
|
|
|
2020-09-25 17:09:51 -04:00
|
|
|
# TODO: Keep overwrite parameter for backwards compatibility. Remove after >= 14.0
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/255382
|
2020-08-27 11:10:21 -04:00
|
|
|
def perform(integration_id, overwrite = nil)
|
|
|
|
Admin::PropagateIntegrationService.propagate(Service.find(integration_id))
|
2020-05-20 14:08:00 -04:00
|
|
|
end
|
|
|
|
end
|