Skip dead jobs queue for web hooks and project services

These jobs may legitimately fail because the endpoint just isn't there any
more. We don't want them cluttering up the Sidekiq morgue in that case - it's
currently full on GitLab.com.
This commit is contained in:
Sean McGivern 2017-07-17 16:38:02 +01:00
parent 05329d4a36
commit ae10151b42
3 changed files with 8 additions and 1 deletions

View file

@ -2,6 +2,8 @@ class ProjectServiceWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
sidekiq_options dead: false
def perform(hook_id, data)
data = data.with_indifferent_access
Service.find(hook_id).execute(data)

View file

@ -2,7 +2,7 @@ class WebHookWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
sidekiq_options retry: 4
sidekiq_options retry: 4, dead: false
def perform(hook_id, data, hook_name)
hook = WebHook.find(hook_id)

View file

@ -0,0 +1,5 @@
---
title: Prevent web hook and project service background jobs from going to the dead
jobs queue
merge_request:
author: