summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-10-31 15:13:44 +0000
committerDouwe Maan <douwe@selenight.nl>2016-10-31 15:13:44 +0000
commit5566f277caffc6be3f5c7bfa8e8ab2fab2928ce9 (patch)
treee25fe417a3a01e0bd73145475869a73e25c8a062
parent490776517c394ced2780159fa3800e2accc27601 (diff)
parent1ff00cb2dd168d98b0d4f4995216ed909dae9349 (diff)
downloadgitlab-ce-5566f277caffc6be3f5c7bfa8e8ab2fab2928ce9.tar.gz
Merge branch 'add-retry-limit-project-webhook'
-rw-r--r--app/workers/project_web_hook_worker.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/project_web_hook_worker.rb b/app/workers/project_web_hook_worker.rb
index efb85eafd15..d973e662ff2 100644
--- a/app/workers/project_web_hook_worker.rb
+++ b/app/workers/project_web_hook_worker.rb
@@ -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)