Skip to content

Commit

Permalink
enable vacuum cron task, disable postupdates
Browse files Browse the repository at this point in the history
  • Loading branch information
r888888888 committed Nov 16, 2017
1 parent 3ad332a commit a4c13a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/post.rb
Expand Up @@ -1454,7 +1454,7 @@ def revert_to!(target)
def notify_pubsub
return unless Danbooru.config.google_api_project

PostUpdate.insert(id)
# PostUpdate.insert(id)
end
end

Expand Down
8 changes: 4 additions & 4 deletions config/schedule.rb
Expand Up @@ -12,7 +12,7 @@
# command "cd /var/www/danbooru2/current ; script/donmai/backup_db"
# command "cd /var/www/danbooru2/current ; bundle exec ruby script/donmai/backup_db_to_s3"
# command "cd /var/www/danbooru2/current ; script/donmai/prune_backup_dbs"
# command "psql --set statement_timeout=0 -hdbserver -c \"vacuum analyze;\" danbooru2"
command "psql --set statement_timeout=0 -hdbserver -c \"vacuum analyze;\" danbooru2"
end

every 1.week, :at => "1:30 am" do
Expand All @@ -24,9 +24,9 @@
end

if environment == "production"
every 30.minutes do
runner "PostUpdate.push"
end
# every 30.minutes do
# runner "PostUpdate.push"
# end

# every 1.hour do
# runner "AmazonBackup.execute"
Expand Down

0 comments on commit a4c13a7

Please sign in to comment.