Rename method to #each_eligible_shard
This commit is contained in:
parent
95ac8b0e1d
commit
041a8ae268
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ module EachShardWorker
|
|||
Gitlab::HealthChecks::GitalyCheck
|
||||
].freeze
|
||||
|
||||
def each_shard
|
||||
def each_eligible_shard
|
||||
Gitlab::ShardHealthCache.update(eligible_shard_names)
|
||||
|
||||
eligible_shard_names.each do |shard_name|
|
||||
|
|
|
@ -7,7 +7,7 @@ module RepositoryCheck
|
|||
def perform
|
||||
return unless Gitlab::CurrentSettings.repository_checks_enabled
|
||||
|
||||
each_shard do |shard_name|
|
||||
each_eligible_shard do |shard_name|
|
||||
RepositoryCheck::BatchWorker.perform_async(shard_name)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue