2018-11-08 19:23:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
class PagesDomainVerificationCronWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include CronjobQueue
|
|
|
|
|
2019-12-21 20:55:43 +05:30
|
|
|
feature_category :pages
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
def perform
|
2019-09-04 21:01:54 +05:30
|
|
|
return if Gitlab::Database.read_only?
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
PagesDomain.needs_verification.find_each do |domain|
|
|
|
|
PagesDomainVerificationWorker.perform_async(domain.id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|