Write projects config to all projects inside namespace in batches

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