From 9afb6df071b13928a3214e047271772ec1e3e541 Mon Sep 17 00:00:00 2001 From: Brian Palmer Date: Thu, 31 Oct 2013 17:51:24 -0600 Subject: [PATCH] remove obsolete periodic job Change-Id: I5843f7efc6bc59fb009d0dd5019a896d5d7a29db Reviewed-on: https://gerrit.instructure.com/25912 Reviewed-by: Zach Pendleton QA-Review: Zach Pendleton Product-Review: Brian Palmer Tested-by: Brian Palmer --- config/periodic_jobs.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/config/periodic_jobs.rb b/config/periodic_jobs.rb index 57f76798ade..33f27578c49 100644 --- a/config/periodic_jobs.rb +++ b/config/periodic_jobs.rb @@ -78,19 +78,6 @@ if IncomingMail::IncomingMessageProcessor.run_periodically? end end -if PageView.redis_queue? - # periodically pull new page views off the cache and insert them into the db - Delayed::Periodic.cron 'PageView.process_cache_queue', '*/1 * * * *' do - Shard.with_each_shard do - unless Shard.current.settings[:process_page_view_queue] == false - PageView.send_later_enqueue_args(:process_cache_queue, - :singleton => "PageView.process_cache_queue:#{Shard.current.id}", - :max_attempts => 1) - end - end - end -end - Delayed::Periodic.cron 'ErrorReport.destroy_error_reports', '35 */1 * * *' do cutoff = Setting.get('error_reports_retain_for', 3.months.to_s).to_i if cutoff > 0