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:
parent
05329d4a36
commit
ae10151b42
3 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Prevent web hook and project service background jobs from going to the dead
|
||||
jobs queue
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in a new issue