Backfill repositories only when a primary node is set

[ci skip]
parent b9951380
...@@ -6,6 +6,8 @@ class GeoBackfillWorker ...@@ -6,6 +6,8 @@ class GeoBackfillWorker
BATCH_SIZE = 100.freeze BATCH_SIZE = 100.freeze
def perform def perform
return unless Gitlab::Geo.primary_node.present?
start = Time.now start = Time.now
project_ids = find_project_ids project_ids = find_project_ids
......
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