debian-mirror-gitlab/app/workers/partition_creation_worker.rb
2020-08-09 17:44:08 +05:30

15 lines
381 B
Ruby

# frozen_string_literal: true
class PartitionCreationWorker
include ApplicationWorker
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :database
idempotent!
def perform
Gitlab::AppLogger.info("Checking state of dynamic postgres partitions")
Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions
end
end