2020-05-20 18:08:00 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PropagateIntegrationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
2021-04-30 18:10:09 +00:00
|
|
|
sidekiq_options retry: 3
|
2020-05-20 18:08:00 +00:00
|
|
|
feature_category :integrations
|
2020-06-12 12:08:56 +00:00
|
|
|
loggable_arguments 1
|
2021-07-26 18:09:51 +00:00
|
|
|
urgency :low
|
|
|
|
|
|
|
|
idempotent!
|
2020-05-20 18:08:00 +00:00
|
|
|
|
2021-05-26 03:10:53 +00:00
|
|
|
def perform(integration_id)
|
2021-11-18 09:10:16 +00:00
|
|
|
::Integrations::PropagateService.propagate(Integration.find(integration_id))
|
2020-05-20 18:08:00 +00:00
|
|
|
end
|
|
|
|
end
|