2020-05-20 18:08:00 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PropagateIntegrationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
feature_category :integrations
|
|
|
|
idempotent!
|
2020-06-12 12:08:56 +00:00
|
|
|
loggable_arguments 1
|
2020-05-20 18:08:00 +00:00
|
|
|
|
2020-08-27 15:10:21 +00:00
|
|
|
# Keep overwrite parameter for backwards compatibility.
|
|
|
|
def perform(integration_id, overwrite = nil)
|
|
|
|
Admin::PropagateIntegrationService.propagate(Service.find(integration_id))
|
2020-05-20 18:08:00 +00:00
|
|
|
end
|
|
|
|
end
|