Commit 3d56dc83 authored by Imre Farkas's avatar Imre Farkas

Merge branch 'ab/partition-creation-ff-logs' into 'master'

Move logging to actual logic

See merge request gitlab-org/gitlab!37690
parents 769ee47a efd9a709
...@@ -8,8 +8,6 @@ class PartitionCreationWorker ...@@ -8,8 +8,6 @@ class PartitionCreationWorker
idempotent! idempotent!
def perform def perform
Gitlab::AppLogger.info("Checking state of dynamic postgres partitions")
Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions
end end
end end
...@@ -26,6 +26,8 @@ module Gitlab ...@@ -26,6 +26,8 @@ module Gitlab
def create_partitions def create_partitions
return unless Feature.enabled?(:postgres_dynamic_partition_creation, default_enabled: true) return unless Feature.enabled?(:postgres_dynamic_partition_creation, default_enabled: true)
Gitlab::AppLogger.info("Checking state of dynamic postgres partitions")
models.each do |model| models.each do |model|
# Double-checking before getting the lease: # Double-checking before getting the lease:
# The prevailing situation is no missing partitions # The prevailing situation is no missing partitions
......
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