BigW Consortium Gitlab

project_web_hook_worker.rb 255 Bytes
Newer Older
1 2
class ProjectWebHookWorker
  include Sidekiq::Worker
3
  include DedicatedSidekiqQueue
4

5
  sidekiq_options retry: 4
6

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