cron: move 'vacuum analyze' to daily maintenance.

This commit is contained in:
evazion
2019-08-06 10:42:45 -05:00
parent 060a585e34
commit 2df6bf41f6
2 changed files with 1 additions and 4 deletions

View File

@@ -26,6 +26,7 @@ module Maintenance
TagChangeRequestPruner.warn_all
TagChangeRequestPruner.reject_all
Ban.prune!
ActiveRecord::Base.connection.execute("vacuum analyze")
rescue Exception => exception
rescue_exception(exception)
end

View File

@@ -9,10 +9,6 @@ every 1.day do
rake "maintenance:daily"
end
every 1.day, :at => "1:00 am" do
command "psql --set statement_timeout=0 -h inuyama -c \"vacuum analyze;\" danbooru2"
end
every 1.week, :at => "1:30 am" do
rake "maintenance:weekly"
end