Commit efd9a709 authored by Andreas Brandl's avatar Andreas Brandl

Move logging to actual logic

parent 8614e246
......@@ -8,8 +8,6 @@ class PartitionCreationWorker
idempotent!
def perform
Gitlab::AppLogger.info("Checking state of dynamic postgres partitions")
Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions
end
end
......@@ -26,6 +26,8 @@ module Gitlab
def create_partitions
return unless Feature.enabled?(:postgres_dynamic_partition_creation, default_enabled: true)
Gitlab::AppLogger.info("Checking state of dynamic postgres partitions")
models.each do |model|
# Double-checking before getting the lease:
# 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