summaryrefslogtreecommitdiff
path: root/app/workers/concerns/each_shard_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/concerns/each_shard_worker.rb')
-rw-r--r--app/workers/concerns/each_shard_worker.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/workers/concerns/each_shard_worker.rb b/app/workers/concerns/each_shard_worker.rb
index 00f589f957e..d1d558f55fe 100644
--- a/app/workers/concerns/each_shard_worker.rb
+++ b/app/workers/concerns/each_shard_worker.rb
@@ -24,7 +24,13 @@ module EachShardWorker
end
def healthy_ready_shards
- ready_shards.select(&:success)
+ success_checks, failed_checks = ready_shards.partition(&:success)
+
+ if failed_checks.any?
+ ::Gitlab::AppLogger.error(message: 'Excluding unhealthy shards', failed_checks: failed_checks.map(&:payload), class: self.class.name)
+ end
+
+ success_checks
end
def ready_shards