2020-07-14 20:09:23 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PartitionCreationWorker
|
|
|
|
include ApplicationWorker
|
2021-04-30 14:10:09 -04:00
|
|
|
|
2021-07-21 08:09:35 -04:00
|
|
|
data_consistency :always
|
|
|
|
|
2020-07-14 20:09:23 -04:00
|
|
|
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
|
|
|
|
|
|
|
|
feature_category :database
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform
|
2021-07-13 11:08:38 -04:00
|
|
|
# This worker has been removed in favor of Database::PartitionManagementWorker
|
|
|
|
Database::PartitionManagementWorker.new.perform
|
2020-07-14 20:09:23 -04:00
|
|
|
end
|
|
|
|
end
|