mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
parent
77a06209cb
commit
41bc90dd3e
@ -460,8 +460,10 @@ def migrate_to_s3
|
|||||||
puts "Rebaking posts with lightboxes..."
|
puts "Rebaking posts with lightboxes..."
|
||||||
|
|
||||||
Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each do |post|
|
Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each do |post|
|
||||||
|
putc "."
|
||||||
post.rebake!(priority: :ultra_low)
|
post.rebake!(priority: :ultra_low)
|
||||||
end
|
end
|
||||||
|
puts
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user