Rename update_tracking_database to update_registry

parent d686047b
...@@ -15,7 +15,7 @@ module Geo ...@@ -15,7 +15,7 @@ module Geo
log('Started repository sync') log('Started repository sync')
fetch_repositories do |started_at, finished_at| fetch_repositories do |started_at, finished_at|
update_tracking_database(started_at, finished_at) update_registry(started_at, finished_at)
end end
log('Finished repository sync') log('Finished repository sync')
...@@ -84,8 +84,8 @@ module Geo ...@@ -84,8 +84,8 @@ module Geo
Gitlab::ExclusiveLease.cancel(lease_key, repository_lease) Gitlab::ExclusiveLease.cancel(lease_key, repository_lease)
end end
def update_tracking_database(started_at, finished_at) def update_registry(started_at, finished_at)
log('Tracking sync information') log('Updating registry information')
registry = Geo::ProjectRegistry.find_or_create_by(project_id: project.id) registry = Geo::ProjectRegistry.find_or_create_by(project_id: project.id)
registry.last_repository_synced_at = started_at registry.last_repository_synced_at = started_at
registry.last_repository_successful_sync_at = finished_at if finished_at registry.last_repository_successful_sync_at = finished_at if finished_at
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment