2020-05-20 14:08:00 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PropagateIntegrationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-04-30 14:10:09 -04:00
|
|
|
sidekiq_options retry: 3
|
|
|
|
|
2020-05-20 14:08:00 -04:00
|
|
|
feature_category :integrations
|
|
|
|
idempotent!
|
2020-06-12 08:08:56 -04:00
|
|
|
loggable_arguments 1
|
2020-05-20 14:08:00 -04:00
|
|
|
|
2021-05-25 23:10:53 -04:00
|
|
|
def perform(integration_id)
|
2021-05-12 08:10:24 -04:00
|
|
|
Admin::PropagateIntegrationService.propagate(Integration.find(integration_id))
|
2020-05-20 14:08:00 -04:00
|
|
|
end
|
|
|
|
end
|