Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pages_domain_verification_cron_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bb3a7fede9a130bc8f093a49c2c9cc6fe6d68ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class PagesDomainVerificationCronWorker
  include ApplicationWorker
  include CronjobQueue

  feature_category :pages

  def perform
    return if Gitlab::Database.read_only?

    PagesDomain.needs_verification.find_each do |domain|
      PagesDomainVerificationWorker.perform_async(domain.id)
    end
  end
end