diff --git a/app/workers/concerns/each_shard_worker.rb b/app/workers/concerns/each_shard_worker.rb index 0bc2d63adcb..202b5759ee9 100644 --- a/app/workers/concerns/each_shard_worker.rb +++ b/app/workers/concerns/each_shard_worker.rb @@ -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| diff --git a/app/workers/repository_check/dispatch_worker.rb b/app/workers/repository_check/dispatch_worker.rb index 403479a8497..891a273afd7 100644 --- a/app/workers/repository_check/dispatch_worker.rb +++ b/app/workers/repository_check/dispatch_worker.rb @@ -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