BigW Consortium Gitlab

web_hook_worker.rb 298 Bytes
Newer Older
1
class WebHookWorker
2
  include Sidekiq::Worker
3
  include DedicatedSidekiqQueue
4

5
  sidekiq_options retry: 4, dead: false
6

7
  def perform(hook_id, data, hook_name)
8
    hook = WebHook.find(hook_id)
9
    data = data.with_indifferent_access
10 11

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