summaryrefslogtreecommitdiff
path: root/app/workers/propagate_integration_worker.rb
blob: 9d21d92b6e3ab52cdc1f8ff359fc5f87da6543ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class PropagateIntegrationWorker
  include ApplicationWorker

  data_consistency :always
  sidekiq_options retry: 3
  feature_category :integrations
  loggable_arguments 1
  urgency :low

  idempotent!

  def perform(integration_id)
    Admin::PropagateIntegrationService.propagate(Integration.find(integration_id))
  end
end