18 lines
462 B
Ruby
18 lines
462 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Database
|
|
class DropDetachedPartitionsWorker
|
|
include ApplicationWorker
|
|
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
|
|
|
|
feature_category :database
|
|
data_consistency :always
|
|
idempotent!
|
|
|
|
def perform
|
|
Gitlab::Database::Partitioning::DetachedPartitionDropper.new.perform
|
|
ensure
|
|
Gitlab::Database::Partitioning::PartitionMonitoring.new.report_metrics
|
|
end
|
|
end
|
|
end
|