2020-05-20 14:08:00 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PropagateIntegrationWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-07-21 08:09:35 -04:00
|
|
|
data_consistency :always
|
2021-04-30 14:10:09 -04:00
|
|
|
sidekiq_options retry: 3
|
2020-05-20 14:08:00 -04:00
|
|
|
feature_category :integrations
|
2020-06-12 08:08:56 -04:00
|
|
|
loggable_arguments 1
|
2021-07-26 14:09:51 -04:00
|
|
|
urgency :low
|
|
|
|
|
|
|
|
idempotent!
|
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
|