Welcome to mirror list, hosted at ThFree Co, Russian Federation.

web_hook_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5230f3bfa1f479912017937a78ddc124b02056c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

class WebHookWorker # rubocop:disable Scalability/IdempotentWorker
  include ApplicationWorker

  feature_category :integrations
  worker_has_external_dependencies!
  loggable_arguments 2

  sidekiq_options retry: 4, dead: false

  def perform(hook_id, data, hook_name)
    hook = WebHook.find(hook_id)
    data = data.with_indifferent_access

    WebHookService.new(hook, data, hook_name).execute
  end
end