Merge branch 'add-retry-limit-project-webhook'

This commit is contained in:
Douwe Maan 2016-10-31 15:13:44 +00:00
commit 5566f277ca

View file

@ -2,6 +2,8 @@ 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)