mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Merge branch 'master' of github.com:domify/registry
This commit is contained in:
commit
a349dc21ff
1 changed files with 34 additions and 32 deletions
|
@ -12,50 +12,52 @@ job_type :runner, "cd #{path} && bin/rails r -e :environment \":task\" :output"
|
||||||
# cron output
|
# cron output
|
||||||
set :output, 'log/cron.log'
|
set :output, 'log/cron.log'
|
||||||
|
|
||||||
puts 'domain'
|
puts 'cron_group'
|
||||||
puts @domain
|
puts @cron_group
|
||||||
puts 'env'
|
puts 'env'
|
||||||
puts @environment
|
puts @environment
|
||||||
|
|
||||||
every 10.minutes do
|
if @cron_group == 'registry'
|
||||||
runner 'ZonefileSetting.generate_zonefiles'
|
every 10.minutes do
|
||||||
end
|
runner 'ZonefileSetting.generate_zonefiles'
|
||||||
|
end
|
||||||
|
|
||||||
every 6.months, at: '12:01am' do
|
every 6.months, at: '12:01am' do
|
||||||
runner 'Contact.destroy_orphans'
|
runner 'Contact.destroy_orphans'
|
||||||
end
|
end
|
||||||
|
|
||||||
every :day, at: '12:10am' do
|
every :day, at: '12:10am' do
|
||||||
runner 'Invoice.cancel_overdue_invoices'
|
runner 'Invoice.cancel_overdue_invoices'
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
# every :day, at: '12:15am' do
|
# every :day, at: '12:15am' do
|
||||||
# runner 'Domain.expire_domains'
|
# runner 'Domain.expire_domains'
|
||||||
# end
|
# end
|
||||||
|
|
||||||
every :day, at: '12:20am' do
|
every :day, at: '12:20am' do
|
||||||
runner 'Domain.clean_expired_pendings'
|
runner 'Domain.clean_expired_pendings'
|
||||||
end
|
end
|
||||||
|
|
||||||
every 3.hours do
|
every 3.hours do
|
||||||
runner 'Certificate.update_crl'
|
runner 'Certificate.update_crl'
|
||||||
end
|
end
|
||||||
|
|
||||||
every 42.minutes do
|
every 42.minutes do
|
||||||
runner 'Domain.destroy_delete_candidates'
|
runner 'Domain.destroy_delete_candidates'
|
||||||
end
|
end
|
||||||
|
|
||||||
every 45.minutes do
|
every 45.minutes do
|
||||||
runner 'Domain.start_expire_period'
|
runner 'Domain.start_expire_period'
|
||||||
end
|
end
|
||||||
|
|
||||||
every 50.minutes do
|
every 50.minutes do
|
||||||
runner 'Domain.start_delete_period'
|
runner 'Domain.start_delete_period'
|
||||||
end
|
end
|
||||||
|
|
||||||
every 52.minutes do
|
every 52.minutes do
|
||||||
runner 'Domain.start_redemption_grace_period'
|
runner 'Domain.start_redemption_grace_period'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
every 10.minutes do
|
every 10.minutes do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue