Merge pull request #87 from internetee/110395650-domain_crons

110395650 domain crons
This commit is contained in:
Timo Võhmar 2016-02-18 20:09:56 +02:00
commit a218a0b5f2
6 changed files with 169 additions and 138 deletions

View file

@ -70,7 +70,7 @@ Rails.application.configure do
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify
config.active_support.deprecation = :log
# Disable automatic flushing of the log to improve performance.
# config.autoflush_log = false

View file

@ -70,7 +70,7 @@ Rails.application.configure do
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify
config.active_support.deprecation = :log
# Disable automatic flushing of the log to improve performance.
# config.autoflush_log = false

View file

@ -31,7 +31,7 @@ if @cron_group == 'registry'
# end
every :day, at: '12:20am' do
runner 'Domain.clean_expired_pendings'
runner 'DomainCron.clean_expired_pendings'
end
every 3.hours do
@ -39,19 +39,19 @@ if @cron_group == 'registry'
end
every 42.minutes do
runner 'Domain.destroy_delete_candidates'
runner 'DomainCron.destroy_delete_candidates'
end
every 45.minutes do
runner 'Domain.start_expire_period'
runner 'DomainCron.start_expire_period'
end
every 50.minutes do
runner 'Domain.start_delete_period'
runner 'DomainCron.start_delete_period'
end
every 52.minutes do
runner 'Domain.start_redemption_grace_period'
runner 'DomainCron.start_redemption_grace_period'
end
every :day, at: '19:00pm' do