2019-06-24 20:35:12 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class PagesDomainSslRenewalCronWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include CronjobQueue
|
|
|
|
|
|
|
|
def perform
|
2019-07-12 16:53:44 +00:00
|
|
|
return unless ::Gitlab::LetsEncrypt.enabled?
|
2019-06-13 11:37:45 +00:00
|
|
|
|
2019-07-12 16:53:44 +00:00
|
|
|
PagesDomain.need_auto_ssl_renewal.find_each do |domain|
|
2019-06-24 20:35:12 +00:00
|
|
|
PagesDomainSslRenewalWorker.perform_async(domain.id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|