gitlab-org--gitlab-foss/app/workers/project_web_hook_worker.rb
Douwe Maan 1ff00cb2dd Merge branch 'master' into 'add-retry-limit-project-webhook'
# Conflicts:
#   app/workers/project_web_hook_worker.rb
2016-10-31 15:00:30 +00:00

11 lines
255 B
Ruby

class ProjectWebHookWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
sidekiq_options retry: 4
def perform(hook_id, data, hook_name)
data = data.with_indifferent_access
WebHook.find(hook_id).execute(data, hook_name)
end
end