Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7ff73556
Commit
7ff73556
authored
Aug 18, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ES] Limit amount of retries for sidekiq job
parent
9f405911
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG-EE
CHANGELOG-EE
+1
-0
app/workers/elastic_commit_indexer_worker.rb
app/workers/elastic_commit_indexer_worker.rb
+1
-1
app/workers/elastic_indexer_worker.rb
app/workers/elastic_indexer_worker.rb
+1
-1
No files found.
CHANGELOG-EE
View file @
7ff73556
...
...
@@ -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
...
...
app/workers/elastic_commit_indexer_worker.rb
View file @
7ff73556
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
)
...
...
app/workers/elastic_indexer_worker.rb
View file @
7ff73556
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment