Write projects config to all projects inside namespace in batches

parent 93eba91d
......@@ -34,7 +34,7 @@ module Storage
# So we basically we mute exceptions in next actions
begin
send_update_instructions
write_projects_full_path_config
write_projects_repository_config
true
rescue
......
......@@ -269,8 +269,8 @@ class Namespace < ActiveRecord::Base
RedirectRoute.permanent.exists?(path: path)
end
def write_projects_full_path_config
all_projects.each do |project|
def write_projects_repository_config
all_projects.find_each do |project|
project.expires_full_path_cache # we need to clear cache to validate renames correctly
project.write_repository_config
end
......
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