summaryrefslogtreecommitdiff
path: root/app/workers/partition_creation_worker.rb
blob: b833e818b32e4c0e17fb6960271a534c3f365be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class PartitionCreationWorker
  include ApplicationWorker
  include CronjobQueue # rubocop:disable Scalability/CronWorkerContext

  feature_category :database
  idempotent!

  def perform
    Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions
  end
end