提交 ae10151b 编写于 作者: S Sean McGivern

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.
上级 05329d4a
......@@ -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)
......
---
title: Prevent web hook and project service background jobs from going to the dead
jobs queue
merge_request:
author:
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册