Commit 7ff73556 authored by Valery Sizov's avatar Valery Sizov

[ES] Limit amount of retries for sidekiq job

parent 9f405911
......@@ -12,6 +12,7 @@ v 8.11.0 (unreleased)
- [Elastic] Improve code search
- [Elastic] Significant improvement of global search performance
- [Fix] Push rules check existing commits in some cases
- [ES] Limit amount of retries for sidekiq jobs
v 8.10.6
- Fix race condition with UpdateMirrorWorker Lease. !641
......
class ElasticCommitIndexerWorker
include Sidekiq::Worker
sidekiq_options queue: :elasticsearch
sidekiq_options queue: :elasticsearch, retry: 2
def perform(project_id, oldrev = nil, newrev = nil)
project = Project.find(project_id)
......
......@@ -2,7 +2,7 @@ class ElasticIndexerWorker
include Sidekiq::Worker
include Elasticsearch::Model::Client::ClassMethods
sidekiq_options queue: :elasticsearch
sidekiq_options queue: :elasticsearch, retry: 2
ISSUE_TRACKED_FIELDS = %w(assignee_id author_id confidential)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment