blob: 9101623d93a1103a605017026baff5b64b428790 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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
|