2019-04-30 12:05:54 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PagesDomainRemovalCronWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include CronjobQueue
|
|
|
|
|
2019-10-18 11:11:44 +00:00
|
|
|
feature_category :pages
|
|
|
|
|
2019-04-30 12:05:54 +00:00
|
|
|
def perform
|
|
|
|
PagesDomain.for_removal.find_each do |domain|
|
|
|
|
domain.destroy!
|
|
|
|
rescue => e
|
|
|
|
Raven.capture_exception(e)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|