Merge branch 'hook_retries' into 'master'
Add retries to system hook worker Closes #31109 See merge request !10801
This commit is contained in:
commit
bfb635a4af
2 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,8 @@ class SystemHookWorker
|
||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
include DedicatedSidekiqQueue
|
include DedicatedSidekiqQueue
|
||||||
|
|
||||||
|
sidekiq_options retry: 4
|
||||||
|
|
||||||
def perform(hook_id, data, hook_name)
|
def perform(hook_id, data, hook_name)
|
||||||
SystemHook.find(hook_id).execute(data, hook_name)
|
SystemHook.find(hook_id).execute(data, hook_name)
|
||||||
end
|
end
|
||||||
|
|
4
changelogs/unreleased/hook_retries.yml
Normal file
4
changelogs/unreleased/hook_retries.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Add retry to system hook worker
|
||||||
|
merge_request: 10801
|
||||||
|
author:
|
Loading…
Reference in a new issue