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
ee99b4d3
Commit
ee99b4d3
authored
Mar 07, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary check from GeoBackfillWorker
parent
d338e3f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/workers/geo_backfill_worker.rb
app/workers/geo_backfill_worker.rb
+5
-2
No files found.
app/workers/geo_backfill_worker.rb
View file @
ee99b4d3
...
...
@@ -21,6 +21,11 @@ class GeoBackfillWorker
project
=
Project
.
find
(
project_id
)
next
if
synced?
(
project
)
# We try to obtain a lease here for the entire backfilling process
# because backfill the repositories continuously at a controlled rate
# instead of hammering the primary node. Initially, we are backfilling
# one repo at a time. If we don't obtain the lease here, every 5
# minutes all of 100 projects will be synced.
try_obtain_lease
do
|
lease
|
GeoSingleRepositoryBackfillWorker
.
new
.
perform
(
project_id
,
lease
)
end
...
...
@@ -36,8 +41,6 @@ class GeoBackfillWorker
private
def
find_project_ids
return
[]
if
Project
.
count
==
Geo
::
ProjectRegistry
.
count
Project
.
where
.
not
(
id:
Geo
::
ProjectRegistry
.
pluck
(
:project_id
))
.
limit
(
BATCH_SIZE
)
.
pluck
(
:id
)
...
...
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