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

16 lines
315 B
Ruby
Raw Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
class PropagateIntegrationWorker
include ApplicationWorker
2021-06-08 01:23:25 +05:30
sidekiq_options retry: 3
2020-06-23 00:09:42 +05:30
feature_category :integrations
idempotent!
loggable_arguments 1
2021-09-04 01:27:46 +05:30
def perform(integration_id)
2021-06-08 01:23:25 +05:30
Admin::PropagateIntegrationService.propagate(Integration.find(integration_id))
2020-06-23 00:09:42 +05:30
end
end