mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 11:14:42 +08:00
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user