BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
74b3b549
Commit
74b3b549
authored
Jun 19, 2017
by
Rémy Coutable
Committed by
Clement Ho
Jun 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'reduce-sidekiq-wait-timings' into 'master'
Reduce wait timings for Sidekiq jobs See merge request !12270
parent
80b6a6e1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
refresh_authorized_projects_service.rb
app/services/users/refresh_authorized_projects_service.rb
+1
-1
reduce-sidekiq-wait-timings.yml
changelogs/unreleased/reduce-sidekiq-wait-timings.yml
+4
-0
job_waiter.rb
lib/gitlab/job_waiter.rb
+1
-1
No files found.
app/services/users/refresh_authorized_projects_service.rb
View file @
74b3b549
...
...
@@ -34,7 +34,7 @@ module Users
# Keep trying until we obtain the lease. If we don't do so we may end up
# not updating the list of authorized projects properly. To prevent
# hammering Redis too much we'll wait for a bit between retries.
sleep
(
1
)
sleep
(
0.
1
)
end
begin
...
...
changelogs/unreleased/reduce-sidekiq-wait-timings.yml
0 → 100644
View file @
74b3b549
---
title
:
Reduce time spent waiting for certain Sidekiq jobs to complete
merge_request
:
author
:
lib/gitlab/job_waiter.rb
View file @
74b3b549
...
...
@@ -14,7 +14,7 @@ module Gitlab
# timeout - The maximum amount of seconds to block the caller for. This
# ensures we don't indefinitely block a caller in case a job takes
# long to process, or is never processed.
def
wait
(
timeout
=
6
0
)
def
wait
(
timeout
=
1
0
)
start
=
Time
.
current
while
(
Time
.
current
-
start
)
<=
timeout
...
...
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