Commit b61ed21f authored by Valery Sizov's avatar Valery Sizov

update elastic rake task

parent 8de3358b
......@@ -4,12 +4,12 @@ namespace :gitlab do
task index_repositories: :environment do
Repository.__elasticsearch__.create_index!
projects = if ENV['NOT_INDEXED_ONLY']
projects = if ENV['UPDATE_INDEX']
Project
else
Project.includes(:index_status).
where("index_statuses.id IS NULL").
references(:index_statuses)
else
Project
end
projects = apply_project_filters(projects)
......
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