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
9d39619d
Commit
9d39619d
authored
Mar 06, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename update_tracking_database to update_registry
parent
d686047b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/services/geo/repository_backfill_service.rb
app/services/geo/repository_backfill_service.rb
+3
-3
No files found.
app/services/geo/repository_backfill_service.rb
View file @
9d39619d
...
...
@@ -15,7 +15,7 @@ module Geo
log
(
'Started repository sync'
)
fetch_repositories
do
|
started_at
,
finished_at
|
update_
tracking_database
(
started_at
,
finished_at
)
update_
registry
(
started_at
,
finished_at
)
end
log
(
'Finished repository sync'
)
...
...
@@ -84,8 +84,8 @@ module Geo
Gitlab
::
ExclusiveLease
.
cancel
(
lease_key
,
repository_lease
)
end
def
update_
tracking_database
(
started_at
,
finished_at
)
log
(
'
Tracking sync
information'
)
def
update_
registry
(
started_at
,
finished_at
)
log
(
'
Updating registry
information'
)
registry
=
Geo
::
ProjectRegistry
.
find_or_create_by
(
project_id:
project
.
id
)
registry
.
last_repository_synced_at
=
started_at
registry
.
last_repository_successful_sync_at
=
finished_at
if
finished_at
...
...
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