debian-mirror-gitlab/app/workers/propagate_integration_worker.rb

18 lines
355 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
class PropagateIntegrationWorker
include ApplicationWorker
2021-10-27 15:23:28 +05:30
data_consistency :always
2021-06-08 01:23:25 +05:30
sidekiq_options retry: 3
2020-06-23 00:09:42 +05:30
feature_category :integrations
loggable_arguments 1
2021-10-27 15:23:28 +05:30
urgency :low
idempotent!
2020-06-23 00:09:42 +05:30
2021-09-04 01:27:46 +05:30
def perform(integration_id)
2022-01-26 12:08:38 +05:30
::Integrations::PropagateService.propagate(Integration.find(integration_id))
2020-06-23 00:09:42 +05:30
end
end