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
509b7ab3
Commit
509b7ab3
authored
Apr 23, 2020
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log duration of ProcessBookkeepingService#execute
parent
3ad8416e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ee/app/services/elastic/process_bookkeeping_service.rb
ee/app/services/elastic/process_bookkeeping_service.rb
+4
-1
No files found.
ee/app/services/elastic/process_bookkeeping_service.rb
View file @
509b7ab3
...
@@ -54,6 +54,8 @@ module Elastic
...
@@ -54,6 +54,8 @@ module Elastic
private
private
def
execute_with_redis
(
redis
)
def
execute_with_redis
(
redis
)
start_time
=
Time
.
now
specs
=
redis
.
zrangebyscore
(
REDIS_SET_KEY
,
'-inf'
,
'+inf'
,
limit:
[
0
,
LIMIT
],
with_scores:
true
)
specs
=
redis
.
zrangebyscore
(
REDIS_SET_KEY
,
'-inf'
,
'+inf'
,
limit:
[
0
,
LIMIT
],
with_scores:
true
)
return
if
specs
.
empty?
return
if
specs
.
empty?
...
@@ -82,7 +84,8 @@ module Elastic
...
@@ -82,7 +84,8 @@ module Elastic
records_count:
specs
.
count
,
records_count:
specs
.
count
,
failures_count:
failures
.
count
,
failures_count:
failures
.
count
,
first_score:
first_score
,
first_score:
first_score
,
last_score:
last_score
last_score:
last_score
,
bulk_execution_duration_s:
Time
.
now
-
start_time
)
)
end
end
...
...
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