debian-mirror-gitlab/app/workers/system_hook_push_worker.rb
2021-06-08 01:23:25 +05:30

13 lines
311 B
Ruby

# frozen_string_literal: true
class SystemHookPushWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
sidekiq_options retry: 3
feature_category :source_code_management
def perform(push_data, hook_id)
SystemHooksService.new.execute_hooks(push_data, hook_id)
end
end