Skip to content
Snippets Groups Projects
Commit fcb967ac authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Write projects config to all projects inside namespace in batches

parent 93eba91d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment