summaryrefslogtreecommitdiff
path: root/app/workers/propagate_integration_worker.rb
blob: 099f423dc0fee20a3214df23fe716e2acad00367 (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)
    ::Integrations::PropagateService.propagate(Integration.find(integration_id))
  end
end