DEV: Add progress indicator for post rebake during s3 migration

Now that we run sidekiq jobs synchronously, this is important
This commit is contained in:
David Taylor
2019-05-20 14:19:58 +01:00
parent 77a06209cb
commit 41bc90dd3e

View File

@ -460,8 +460,10 @@ def migrate_to_s3
puts "Rebaking posts with lightboxes..."
Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each do |post|
putc "."
post.rebake!(priority: :ultra_low)
end
puts
end
end