maintenance: fix tag counts hourly instead of daily (#4572).

This commit is contained in:
evazion
2020-08-07 09:14:31 -05:00
parent 8917cc3035
commit 85b04887d2

View File

@@ -4,12 +4,12 @@ module DanbooruMaintenance
def hourly
safely { Upload.prune! }
safely { PostPruner.prune! }
safely { regenerate_post_counts! }
end
def daily
safely { Delayed::Job.where('created_at < ?', 45.days.ago).delete_all }
safely { PostDisapproval.prune! }
safely { regenerate_post_counts! }
safely { TokenBucket.prune! }
safely { BulkUpdateRequestPruner.warn_old }
safely { BulkUpdateRequestPruner.reject_expired }