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:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user