2020-07-15 00:09:23 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PartitionCreationWorker
|
|
|
|
include ApplicationWorker
|
2021-04-30 18:10:09 +00:00
|
|
|
|
|
|
|
sidekiq_options retry: 3
|
2020-07-15 00:09:23 +00:00
|
|
|
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
|
|
|
|
|
|
|
|
feature_category :database
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform
|
2021-07-13 15:08:38 +00:00
|
|
|
# This worker has been removed in favor of Database::PartitionManagementWorker
|
|
|
|
Database::PartitionManagementWorker.new.perform
|
2020-07-15 00:09:23 +00:00
|
|
|
end
|
|
|
|
end
|