Commit 8d4b38e2 authored by Toon Claes's avatar Toon Claes

Rename method to #each_eligible_shard

parent a0ef89e2
...@@ -6,7 +6,7 @@ module EachShardWorker ...@@ -6,7 +6,7 @@ module EachShardWorker
Gitlab::HealthChecks::GitalyCheck Gitlab::HealthChecks::GitalyCheck
].freeze ].freeze
def each_shard def each_eligible_shard
Gitlab::ShardHealthCache.update(eligible_shard_names) Gitlab::ShardHealthCache.update(eligible_shard_names)
eligible_shard_names.each do |shard_name| eligible_shard_names.each do |shard_name|
......
...@@ -7,7 +7,7 @@ module RepositoryCheck ...@@ -7,7 +7,7 @@ module RepositoryCheck
def perform def perform
return unless Gitlab::CurrentSettings.repository_checks_enabled return unless Gitlab::CurrentSettings.repository_checks_enabled
each_shard do |shard_name| each_eligible_shard do |shard_name|
RepositoryCheck::BatchWorker.perform_async(shard_name) RepositoryCheck::BatchWorker.perform_async(shard_name)
end end
end end
......
...@@ -7,7 +7,7 @@ module Geo ...@@ -7,7 +7,7 @@ module Geo
include ::EachShardWorker include ::EachShardWorker
def perform def perform
each_shard { |shard_name| schedule_job(shard_name) } each_eligible_shard { |shard_name| schedule_job(shard_name) }
end end
def schedule_job(shard_name) def schedule_job(shard_name)
......
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