Class: Jobs::Weekly
- Defined in:
- app/jobs/scheduled/weekly.rb
Overview
This job will run on a regular basis to update statistics and denormalized data. If it does not run, the site will not function properly.
Instance Method Summary collapse
Methods inherited from Scheduled
Methods inherited from Base
acquire_cluster_concurrency_lock!, clear_cluster_concurrency_lock!, cluster_concurrency, cluster_concurrency_redis_key, delayed_perform, #error_context, get_cluster_concurrency, #last_db_duration, #log, #perform, #perform_immediately
Instance Method Details
#execute(args) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/jobs/scheduled/weekly.rb', line 9 def execute(args) ScoreCalculator.new.calculate MiniScheduler::Stat.purge_old Draft.cleanup! UserAuthToken.cleanup! Email::Cleaner.delete_rejected! Notification.purge_old! Bookmark.cleanup! end |