Commit 041a8ae2 authored by Toon Claes's avatar Toon Claes

Rename method to #each_eligible_shard

parent 95ac8b0e
...@@ -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
......
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