maintenance: prune approvers monthly instead of weekly.

* Move approver pruning from a weekly task to a monthly task.
* Move weekly maintenance tasks from Wednesdays at 1:30am to Sundays at
  midnight (UTC).
This commit is contained in:
evazion
2020-01-13 13:23:22 -06:00
parent ec8c427ef3
commit 79aff89573
3 changed files with 16 additions and 4 deletions

View File

@@ -23,10 +23,13 @@ module DanbooruMaintenance
def weekly
safely { UserPasswordResetNonce.prune! }
safely { ApproverPruner.prune! }
safely { TagRelationshipRetirementService.find_and_retire! }
end
def monthly
safely { ApproverPruner.prune! }
end
def regenerate_post_counts!
updated_tags = Tag.regenerate_post_counts!
updated_tags.each do |tag|