Commit 5461d215 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix Geo::ScheduleBackfillService iteration logic

parent eae68880
......@@ -9,8 +9,8 @@ module Geo
def execute
return if geo_node_id.nil?
Project.all.select(&:valid_repo?).find_each(batch_size: 100) do |project|
GeoBackfillWorker.perform_async(geo_node_id, project.id)
Project.find_each(batch_size: 100) do |project|
GeoBackfillWorker.perform_async(geo_node_id, project.id) if project.valid_repo?
end
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